From 55097e19850d175fe3c93a40ce7c6d50d2c60e8f Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sun, 3 Mar 2013 16:34:06 +0100 Subject: Fix pickup of dropped items when the player only takes a part of them --- builtin/item_entity.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'builtin') 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 -- cgit v1.2.3