block ticking changes(should not lag that much now), chamge back if any issues will start to appear

This commit is contained in:
GameHerobrine 2022-12-12 19:17:16 +03:00
parent 569f81c70c
commit 03059f7677
2 changed files with 8 additions and 3 deletions

View file

@ -531,7 +531,8 @@ class BlockAPI{
$this->blockUpdateAround($block, $level);
$this->server->api->entity->updateRadius($pos, 1);
}elseif($level === BLOCK_UPDATE_RANDOM){
$this->nextRandomUpdate($pos);
//$this->nextRandomUpdate($pos); old version, change back if any issues will start to happen with this one(please note that old version makes a lot of lag)
$this->scheduleBlockUpdate($pos, (mt_rand(25, 75) + Utils::getRandomUpdateTicks() * 0.05) / 0.05, BLOCK_UPDATE_RANDOM);
}
return $level;
}