mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
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:
parent
0f3147f49b
commit
ecf6de3430
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user