diff --git a/3d_armor/init.lua b/3d_armor/init.lua index 7a85c4b..146d3e8 100644 --- a/3d_armor/init.lua +++ b/3d_armor/init.lua @@ -264,7 +264,7 @@ minetest.register_on_player_hpchange(function(player, hp_change) local heal = def.groups["armor_heal"] or 0 local item = stack:get_name() stack:add_wear(use) - armor:set_inventory_stack("armor", i, stack) + armor:set_inventory_stack(player, i, stack) state = state + stack:get_wear() items = items + 1 if stack:get_count() == 0 then