added chunk unloading(average chunks per player in inf world: 289now)

This commit is contained in:
GameHerobrine 2023-02-25 14:18:44 +03:00
parent d85814e036
commit 37bbfe2d81
2 changed files with 36 additions and 6 deletions

View file

@ -730,6 +730,10 @@ class Entity extends Position
$this->updateMovement();
}
if($this->isPlayer()){
$this->player->entityTick();
}
$this->needsUpdate = $hasUpdate;
$this->lastUpdate = $now;
}