mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
World: split populateChunk() into two functions
requestChunkPopulation() respects the queue size, orderChunkPopulation() does not. requestChunkPopulation() should be used for non-essential generation (which mainly includes generation for player use). orderChunkPopulation() should probably be used by plugins.
This commit is contained in:
@@ -284,7 +284,7 @@ class WorldManager{
|
||||
|
||||
foreach((new ChunkSelector())->selectChunks(3, $centerX, $centerZ) as $index){
|
||||
World::getXZ($index, $chunkX, $chunkZ);
|
||||
$world->populateChunk($chunkX, $chunkZ, true);
|
||||
$world->orderChunkPopulation($chunkX, $chunkZ);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user