mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 03:35:33 +00:00
World->populateChunk() no longer causes ChunkLoadEvent to fire with an empty chunk
instead, it will fire when the chunk comes out of PopulationTask and is set into the world using setChunk(). There is still one place left where auto-creation of empty chunks is used by the core, and that's an issue i'm still deciding how to deal with.
This commit is contained in:
parent
fa9be2477d
commit
ec2feeffcb
@ -2513,7 +2513,10 @@ class World implements ChunkManager{
|
||||
}
|
||||
}
|
||||
|
||||
$chunk = $this->loadChunk($x, $z, true);
|
||||
$chunk = $this->loadChunk($x, $z, false);
|
||||
if($chunk === null){
|
||||
$chunk = new Chunk($x, $z);
|
||||
}
|
||||
if(!$chunk->isPopulated()){
|
||||
Timings::$populationTimer->startTiming();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user