fix error with checks/unobtainable_items.lua
This commit is contained in:
parent
a2aa630367
commit
d5c9c9eb8c
@ -26,7 +26,7 @@ for item, def in pairs(minetest.registered_items) do
|
|||||||
local dropname = dropstack:get_name()
|
local dropname = dropstack:get_name()
|
||||||
items[dropname] = true
|
items[dropname] = true
|
||||||
end
|
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 i=1,#def.drop.items do
|
||||||
for j=1,#def.drop.items[i].items do
|
for j=1,#def.drop.items[i].items do
|
||||||
items[def.drop.items[i].items[j]] = true
|
items[def.drop.items[i].items[j]] = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user