Remove redundant survival check for exhaustion

This commit is contained in:
Dylan K. Taylor 2017-11-17 12:55:48 +00:00
parent 7508524b7b
commit 78bb951942

View File

@ -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);
}
}