handle_node_drops no longer destroys metadata

This commit is contained in:
Wuzzy 2019-03-01 17:30:21 +01:00
parent 19b1cf5986
commit a711c7bdb7
2 changed files with 6 additions and 7 deletions

View file

@ -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