Fix crash caused by 27a3823eedf619916bfd5cc813fb6190b40a8529

This commit is contained in:
stujones11 2017-03-23 00:59:21 +00:00
parent 27a3823eed
commit 86fd6b0d7d

@ -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