mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Disable random ticking for some blocks depending on their states
we don't need to waste CPU time attempting to tick fully grown crops.
This commit is contained in:
@ -102,7 +102,7 @@ class SweetBerryBush extends Flowable{
|
||||
}
|
||||
|
||||
public function ticksRandomly() : bool{
|
||||
return true;
|
||||
return $this->age < self::STAGE_MATURE;
|
||||
}
|
||||
|
||||
public function onRandomTick() : void{
|
||||
|
Reference in New Issue
Block a user