mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
AsyncWorker IDs now start from 0 instead of 1
this now matches their IDs in the AsyncWorker pool, as used by submitTask().
This commit is contained in:
@ -139,7 +139,7 @@ class PopulationTask extends AsyncTask{
|
||||
$level = $server->getLevel($this->levelId);
|
||||
if($level !== null){
|
||||
if(!$this->state){
|
||||
$level->registerGeneratorToWorker($this->worker->getAsyncWorkerId() - 1);
|
||||
$level->registerGeneratorToWorker($this->worker->getAsyncWorkerId());
|
||||
}
|
||||
|
||||
$chunk = Chunk::fastDeserialize($this->chunk);
|
||||
|
Reference in New Issue
Block a user