mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +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);
|
$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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user