Player: Order chunks immediately on receiving chunk radius request

This commit is contained in:
Dylan K. Taylor 2018-03-23 19:44:03 +00:00
parent a185b78486
commit c464d39401

View File

@ -556,6 +556,8 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$this->spawnThreshold = (int) (min($this->viewDistance, $this->server->getProperty("chunk-sending.spawn-radius", 4)) ** 2 * M_PI);
$this->nextChunkOrderRun = 0;
$pk = new ChunkRadiusUpdatedPacket();
$pk->radius = $this->viewDistance;
$this->dataPacket($pk);