forked from MineClone5/MineClone5
Fix mobs staying red after explosion
This commit is contained in:
parent
0dfe211053
commit
b99fbe8f69
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue