WorldManager: Pre-generate a radius of 8 chunks

3 is absurdly small. 8 is a more realistic estimation of what the average player's render distance will be (it's also the default server.properties limit).
3 doesn't even fill the default spawn-radius setting, meaning that delays during player connection would occur anyway due to generation.
This commit is contained in:
Dylan K. Taylor 2021-04-13 22:15:47 +01:00
parent 0f3147f49b
commit ecf6de3430
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -272,7 +272,7 @@ class WorldManager{
$centerX = $spawnLocation->getFloorX() >> 4;
$centerZ = $spawnLocation->getFloorZ() >> 4;
$selected = iterator_to_array((new ChunkSelector())->selectChunks(3, $centerX, $centerZ));
$selected = iterator_to_array((new ChunkSelector())->selectChunks(8, $centerX, $centerZ));
$done = 0;
$total = count($selected);
foreach($selected as $index){