Fix crash caused by 27a3823eed

This commit is contained in:
stujones11 2017-03-23 00:59:21 +00:00
parent 27a3823eed
commit 86fd6b0d7d
1 changed files with 1 additions and 1 deletions

View File

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