1
0
Fork 0

Fix pickup of dropped items when the player only takes a part of them

mutilcraft-mt53
PilzAdam 2013-03-03 16:34:06 +01:00
parent c61a2ef44f
commit 55097e1985
1 changed files with 1 additions and 0 deletions

View File

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