mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
Remove redundant survival check for exhaustion
This commit is contained in:
parent
7508524b7b
commit
78bb951942
@ -3608,9 +3608,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
}elseif($this->getLastDamageCause() === $source and $this->spawned){
|
}elseif($this->getLastDamageCause() === $source and $this->spawned){
|
||||||
$this->broadcastEntityEvent(EntityEventPacket::HURT_ANIMATION, null, [$this]);
|
$this->broadcastEntityEvent(EntityEventPacket::HURT_ANIMATION, null, [$this]);
|
||||||
|
|
||||||
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