mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-12 12:55:21 +00:00
Fixed player hit animations
This commit is contained in:
parent
fd0b07a0aa
commit
99f06c6c18
@ -3662,7 +3662,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
if($source->isCancelled()){
|
if($source->isCancelled()){
|
||||||
return;
|
return;
|
||||||
}elseif($this->getLastDamageCause() === $source and $this->spawned){
|
}elseif($this->getLastDamageCause() === $source and $this->spawned){
|
||||||
$this->broadcastEntityEvent(EntityEventPacket::HURT_ANIMATION);
|
$this->broadcastEntityEvent(EntityEventPacket::HURT_ANIMATION, null, [$this]);
|
||||||
|
|
||||||
if($this->isSurvival()){
|
if($this->isSurvival()){
|
||||||
$this->exhaust(0.3, PlayerExhaustEvent::CAUSE_DAMAGE);
|
$this->exhaust(0.3, PlayerExhaustEvent::CAUSE_DAMAGE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user