Merge branch 'release/3.0' into release/3.1

This commit is contained in:
Dylan K. Taylor 2018-07-17 10:12:52 +01:00
commit 6f00a30ad7

View File

@ -2943,13 +2943,13 @@ class Level implements ChunkManager, Metadatable{
}
if($populate){
if(!isset($this->chunkPopulationQueue[$index])){
$this->chunkPopulationQueue[$index] = true;
for($xx = -1; $xx <= 1; ++$xx){
for($zz = -1; $zz <= 1; ++$zz){
$this->chunkPopulationLock[Level::chunkHash($x + $xx, $z + $zz)] = true;
}
}
$task = new PopulationTask($this, $chunk);
$workerId = $this->server->getAsyncPool()->selectWorker();
if(!isset($this->generatorRegisteredWorkers[$workerId])){
@ -2957,7 +2957,6 @@ class Level implements ChunkManager, Metadatable{
}
$this->server->getAsyncPool()->submitTaskToWorker($task, $workerId);
}
}
Timings::$populationTimer->stopTiming();
return false;