better itemcheck

master
AiTechEye 2020-04-11 16:38:26 +02:00 committed by GitHub
parent f482bd825c
commit b9857a91f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
minetest.after(0, function()
for v, s in pairs(core.registered_items) do
if not (s.groups and s.groups.not_in_creative_inventory==1) and not afterearth.not_in_trash[v] then
if s.groups and s.groups.not_in_creative_inventory ~=1 and not afterearth.not_in_trash[v] then
local c=minetest.get_craft_recipe(v)
if c.items then
table.insert(afterearth.trashdrops,v)
@ -11,6 +11,7 @@ for v, s in pairs(core.registered_items) do
end
end
end
afterearth.trashdropscount=math.floor(#afterearth.trashdrops/4)
end)