Drop the left item when collecting

This commit is contained in:
MoNTE48 2020-03-26 20:26:23 +01:00
parent 1546f296c8
commit fa384341f4

View File

@ -342,7 +342,10 @@ if collection then
}) })
entity.itemstring = "" entity.itemstring = ""
obj:remove() 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 end
end end