From 86fd6b0d7d5120c51c6fbb3b36ee0620f4956432 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Thu, 23 Mar 2017 00:59:21 +0000 Subject: [PATCH] Fix crash caused by 27a3823eedf619916bfd5cc813fb6190b40a8529 --- 3d_armor/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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