mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Remove redundant condition for setBreathing()
This commit is contained in:
@ -466,9 +466,7 @@ abstract class Living extends Entity implements Damageable{
|
||||
}
|
||||
|
||||
if(!$this->canBreathe()){
|
||||
if($this->isBreathing()){
|
||||
$this->setBreathing(false);
|
||||
}
|
||||
$this->setBreathing(false);
|
||||
$this->doAirSupplyTick($tickDiff);
|
||||
}elseif(!$this->isBreathing()){
|
||||
$this->setBreathing(true);
|
||||
|
Reference in New Issue
Block a user