aboutsummaryrefslogtreecommitdiff
path: root/builtin/item_entity.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/item_entity.lua')
-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