handle_node_drops no longer destroys metadata
This commit is contained in:
parent
19b1cf5986
commit
a711c7bdb7
2 changed files with 6 additions and 7 deletions
|
@ -555,8 +555,7 @@ if minetest.settings:get_bool("creative_mode") then
|
|||
local inv = digger:get_inventory()
|
||||
if inv then
|
||||
for _,item in ipairs(drops) do
|
||||
item = ItemStack(item):get_name()
|
||||
if not inv:contains_item("main", item) then
|
||||
if not inv:contains_item("main", item, true) then
|
||||
inv:add_item("main", item)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue