error during adding drop_item
parent
ac39f4a352
commit
a6f6d2e9bb
7
api.lua
7
api.lua
|
@ -47,8 +47,11 @@ M.add_drop=function(name,drop_def)
|
||||||
if drop_def.items == nil then
|
if drop_def.items == nil then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
local add_item = drop_def.items
|
||||||
if minetest.registered_items[drop_def.items:split(" ")[1]] == nil then
|
if add_item[1] ~= nil then
|
||||||
|
add_item=add_item[1]
|
||||||
|
end
|
||||||
|
if minetest.registered_items[add_item:split(" ")[1]] == nil then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if drop_def.rarety == nil then
|
if drop_def.rarety == nil then
|
||||||
|
|
Loading…
Reference in New Issue