Remove redundant condition for setBreathing()

This commit is contained in:
Dylan K. Taylor 2017-11-22 19:43:09 +00:00
parent 47f94eebd1
commit e9951b1b1f

View File

@ -466,9 +466,7 @@ abstract class Living extends Entity implements Damageable{
} }
if(!$this->canBreathe()){ if(!$this->canBreathe()){
if($this->isBreathing()){ $this->setBreathing(false);
$this->setBreathing(false);
}
$this->doAirSupplyTick($tickDiff); $this->doAirSupplyTick($tickDiff);
}elseif(!$this->isBreathing()){ }elseif(!$this->isBreathing()){
$this->setBreathing(true); $this->setBreathing(true);