forked from MineClone5/MineClone5
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:
commit
bba0ef15cb
|
@ -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