mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-26 14:23:45 +01:00
Fix crash caused by 27a3823eedf619916bfd5cc813fb6190b40a8529
This commit is contained in:
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 heal = def.groups["armor_heal"] or 0
|
||||||
local item = stack:get_name()
|
local item = stack:get_name()
|
||||||
stack:add_wear(use)
|
stack:add_wear(use)
|
||||||
armor:set_inventory_stack("armor", i, stack)
|
armor:set_inventory_stack(player, i, stack)
|
||||||
state = state + stack:get_wear()
|
state = state + stack:get_wear()
|
||||||
items = items + 1
|
items = items + 1
|
||||||
if stack:get_count() == 0 then
|
if stack:get_count() == 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user