mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +00:00
ChorusFlower: move ticksRandomly() to a more appropriate place
This commit is contained in:
parent
eac0564792
commit
ca69f08da0
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user