From 55cc5a66511049cacc6a164c2a9a97097c6686a4 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 29 Sep 2023 12:45:55 +0100 Subject: [PATCH] NetherVines: optimize condition order --- src/block/NetherVines.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block/NetherVines.php b/src/block/NetherVines.php index 3a0369740..eb459a0f1 100644 --- a/src/block/NetherVines.php +++ b/src/block/NetherVines.php @@ -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); }