From 7055b68f6b2d7efd3002a3e26737f9e8914c4c6c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 3 Nov 2017 00:01:15 +0100 Subject: [PATCH] Fix armor stand repairing damaged armor --- mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua b/mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua index 68992138..65407ff4 100644 --- a/mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua +++ b/mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua @@ -132,7 +132,8 @@ minetest.register_node("3d_armor_stand:armor_stand", { if not inv then return end if list then -- ... but only if the slot is free - local single_item = itemstack:get_name() + local single_item = ItemStack(itemstack) + single_item:set_count(1) if inv:is_empty(list) then inv:add_item(list, single_item) update_entity(pos)