New extra.properties and ClientRenderFix

This commit is contained in:
kotyaralih 2022-01-31 15:43:13 +00:00
parent c3954dbdae
commit a6aa36bbba
5 changed files with 175 additions and 10 deletions

View file

@ -939,6 +939,12 @@ class Player{
}
}
if($pos->level->getName() !== $this->level->getName()) { // we're switching levels.
$rf = new ClientRenderFix($this);
if($this->server->extraprops->get("update-client-on-world-switch")) {
$rf = new ClientRenderFix($this, $this->server->extraprops->get("update-frequency"));
}
}
$this->level->freeAllChunks($this);
$this->level = $pos->level;