mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fix pickup of dropped items when the player only takes a part of them
This commit is contained in:
@@ -111,6 +111,7 @@ minetest.register_entity("__builtin:item", {
|
||||
if self.itemstring ~= '' then
|
||||
local left = hitter:get_inventory():add_item("main", self.itemstring)
|
||||
if not left:is_empty() then
|
||||
self.itemstring = left:to_string()
|
||||
return
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user