mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +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:
@ -724,7 +724,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
||||
$this->getWorld()->registerChunkLoader($this->chunkLoader, $X, $Z, true);
|
||||
$this->getWorld()->registerChunkListener($this, $X, $Z);
|
||||
|
||||
if(!$this->getWorld()->populateChunk($X, $Z)){
|
||||
if(!$this->getWorld()->requestChunkPopulation($X, $Z)){
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user