mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-30 23:11:06 +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->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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user