Drop the left item when collecting

master
MoNTE48 2020-03-26 20:26:23 +01:00
parent 1546f296c8
commit fa384341f4
1 changed files with 4 additions and 1 deletions

View File

@ -342,7 +342,10 @@ if collection then
})
entity.itemstring = ""
obj:remove()
inv:add_item("main", item)
item = inv:add_item("main", item)
if not item:is_empty() then
core.item_drop(item, player, ppos)
end
end)
end
end