mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Remove redundant survival check for exhaustion
This commit is contained in:
@ -3608,9 +3608,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
}elseif($this->getLastDamageCause() === $source and $this->spawned){
|
||||
$this->broadcastEntityEvent(EntityEventPacket::HURT_ANIMATION, null, [$this]);
|
||||
|
||||
if($this->isSurvival()){
|
||||
$this->exhaust(0.3, PlayerExhaustEvent::CAUSE_DAMAGE);
|
||||
}
|
||||
$this->exhaust(0.3, PlayerExhaustEvent::CAUSE_DAMAGE);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user