aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-03-03 16:34:06 +0100
committerPilzAdam <pilzadam@minetest.net>2013-03-03 16:35:29 +0100
commit55097e19850d175fe3c93a40ce7c6d50d2c60e8f (patch)
tree3aee425e5e88b5df7342c5cb94497c494702e693 /builtin
parentc61a2ef44fd834b8d6829fce9b1b92ee9a876076 (diff)
downloadminetest-55097e19850d175fe3c93a40ce7c6d50d2c60e8f.tar.gz
minetest-55097e19850d175fe3c93a40ce7c6d50d2c60e8f.tar.bz2
minetest-55097e19850d175fe3c93a40ce7c6d50d2c60e8f.zip
Fix pickup of dropped items when the player only takes a part of them
Diffstat (limited to 'builtin')
-rw-r--r--builtin/item_entity.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/item_entity.lua b/builtin/item_entity.lua
index 1699cb03c..50ce7eafe 100644
--- a/builtin/item_entity.lua
+++ b/builtin/item_entity.lua
@@ -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