Merge pull request 'Fix mobs staying red after explosion' (#276) from MrRar/MineClone5:fix-red into master

Reviewed-on: MineClone5/MineClone5#276
This commit is contained in:
kay27 2022-04-04 00:29:54 +00:00
commit bba0ef15cb
1 changed files with 1 additions and 0 deletions

View File

@ -417,6 +417,7 @@ function mcl_util.deal_damage(target, damage, mcl_reason)
-- target:punch(puncher, 1.0, {full_punch_interval = 1.0, damage_groups = {fleshy = damage}}, vector.direction(puncher:get_pos(), target:get_pos()), damage) -- target:punch(puncher, 1.0, {full_punch_interval = 1.0, damage_groups = {fleshy = damage}}, vector.direction(puncher:get_pos(), target:get_pos()), damage)
if luaentity.health > 0 then if luaentity.health > 0 then
luaentity.health = luaentity.health - damage luaentity.health = luaentity.health - damage
luaentity.pause_timer = 0.4
end end
return return
end end