1
0
Fork 0

Fix zombies sometimes just disappearing when dieing to fire

This commit is contained in:
Lizzy Fleckenstein 2021-01-04 13:30:30 +01:00
parent cfa6937df4
commit f86cf37ac9
1 changed files with 2 additions and 1 deletions

View File

@ -106,9 +106,10 @@ function mcl_burning.damage(obj)
damage = 1
end
local new_hp = hp - damage
obj:set_hp(new_hp)
if health then
luaentity.health = new_hp
else
obj:set_hp(new_hp)
end
end
end