mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 12:27:51 +00:00
NetherVines: optimize condition order
This commit is contained in:
parent
390cc3060a
commit
55cc5a6651
@ -99,7 +99,7 @@ class NetherVines extends Flowable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function onRandomTick() : void{
|
public function onRandomTick() : void{
|
||||||
if(mt_rand(1, 10) === 1 && $this->age < self::MAX_AGE){
|
if($this->age < self::MAX_AGE && mt_rand(1, 10) === 1){
|
||||||
if($this->getSide($this->growthFace)->canBeReplaced()){
|
if($this->getSide($this->growthFace)->canBeReplaced()){
|
||||||
$this->grow(null);
|
$this->grow(null);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user