From: PilzAdam Date: Sun, 3 Mar 2013 15:34:06 +0000 (+0100) Subject: Fix pickup of dropped items when the player only takes a part of them X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=55097e19850d175fe3c93a40ce7c6d50d2c60e8f;p=zefram%2Fminetest%2Fminetest_engine.git Fix pickup of dropped items when the player only takes a part of them --- diff --git a/builtin/item_entity.lua b/builtin/item_entity.lua index 1699cb03..50ce7eaf 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