Fix mobs staying red after explosion

This commit is contained in:
parent 0dfe211053
commit b99fbe8f69
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)
if luaentity.health > 0 then
luaentity.health = luaentity.health - damage
luaentity.pause_timer = 0.4
end
return
end