fix error with checks/unobtainable_items.lua

This commit is contained in:
Alexander Weber 2022-01-26 18:46:11 +01:00
parent a2aa630367
commit d5c9c9eb8c

View File

@ -26,7 +26,7 @@ for item, def in pairs(minetest.registered_items) do
local dropname = dropstack:get_name()
items[dropname] = true
end
elseif type(def.drop) == "table" then
elseif type(def.drop) == "table" and def.drop.items then
for i=1,#def.drop.items do
for j=1,#def.drop.items[i].items do
items[def.drop.items[i].items[j]] = true