forked from Mirrorlandia_minetest/minetest
get_node_drops: Make empty drop return empty table (#7592)
This stops get_node_drops from returning an empty string when using drop = "" and instead returns the supposed empty table instead {}
This commit is contained in:
parent
1c4c0d4673
commit
a4f41e7bfc
@ -197,7 +197,7 @@ function core.get_node_drops(node, toolname)
|
|||||||
return {nodename}
|
return {nodename}
|
||||||
elseif type(drop) == "string" then
|
elseif type(drop) == "string" then
|
||||||
-- itemstring drop
|
-- itemstring drop
|
||||||
return {drop}
|
return drop ~= "" and {drop} or {}
|
||||||
elseif drop.items == nil then
|
elseif drop.items == nil then
|
||||||
-- drop = {} to disable default drop
|
-- drop = {} to disable default drop
|
||||||
return {}
|
return {}
|
||||||
|
Loading…
Reference in New Issue
Block a user