added chunk send delay into server.properties(min=0, default=5)

This commit is contained in:
GameHerobrine 2023-11-28 03:32:34 +03:00
parent c150a46383
commit 07632377ac
4 changed files with 10 additions and 5 deletions

View file

@ -491,7 +491,7 @@ class Player{
}
if($this->isSleeping) ++$this->sleepingTime;
if($this->chunkTicker++ > 5){
if($this->chunkTicker++ > PocketMinecraftServer::$chukSendDelay){
$this->getNextChunk($this->level);
$this->chunkTicker = 0;
}