Drop the left item when collecting
This commit is contained in:
parent
1546f296c8
commit
fa384341f4
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user