mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
ChorusFlower: move ticksRandomly() to a more appropriate place
This commit is contained in:
@ -83,8 +83,6 @@ final class ChorusFlower extends Flowable{
|
|||||||
$this->position->getWorld()->useBreakOn($this->position);
|
$this->position->getWorld()->useBreakOn($this->position);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ticksRandomly() : bool{ return $this->age < self::MAX_AGE; }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @phpstan-return array{int, bool}
|
* @phpstan-return array{int, bool}
|
||||||
*/
|
*/
|
||||||
@ -159,6 +157,8 @@ final class ChorusFlower extends Flowable{
|
|||||||
return $tx;
|
return $tx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function ticksRandomly() : bool{ return $this->age < self::MAX_AGE; }
|
||||||
|
|
||||||
public function onRandomTick() : void{
|
public function onRandomTick() : void{
|
||||||
$world = $this->position->getWorld();
|
$world = $this->position->getWorld();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user