NetherVines: optimize condition order

This commit is contained in:
Dylan K. Taylor 2023-09-29 12:45:55 +01:00
parent 390cc3060a
commit 55cc5a6651
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -99,7 +99,7 @@ class NetherVines extends Flowable{
}
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()){
$this->grow(null);
}