ChorusFlower: move ticksRandomly() to a more appropriate place

This commit is contained in:
Dylan K. Taylor 2023-09-29 12:44:27 +01:00
parent eac0564792
commit ca69f08da0
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -83,8 +83,6 @@ final class ChorusFlower extends Flowable{
$this->position->getWorld()->useBreakOn($this->position);
}
public function ticksRandomly() : bool{ return $this->age < self::MAX_AGE; }
/**
* @phpstan-return array{int, bool}
*/
@ -159,6 +157,8 @@ final class ChorusFlower extends Flowable{
return $tx;
}
public function ticksRandomly() : bool{ return $this->age < self::MAX_AGE; }
public function onRandomTick() : void{
$world = $this->position->getWorld();