mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Fix zombies sometimes just disappearing when dieing to fire
This commit is contained in:
parent
cfa6937df4
commit
f86cf37ac9
@ -106,9 +106,10 @@ function mcl_burning.damage(obj)
|
|||||||
damage = 1
|
damage = 1
|
||||||
end
|
end
|
||||||
local new_hp = hp - damage
|
local new_hp = hp - damage
|
||||||
obj:set_hp(new_hp)
|
|
||||||
if health then
|
if health then
|
||||||
luaentity.health = new_hp
|
luaentity.health = new_hp
|
||||||
|
else
|
||||||
|
obj:set_hp(new_hp)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user