mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Remove redundant condition for setBreathing()
This commit is contained in:
parent
47f94eebd1
commit
e9951b1b1f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user