mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Level: fix chunk locks not getting released on generation errors
This commit is contained in:
@ -152,11 +152,11 @@ class PopulationTask extends AsyncTask{
|
||||
$c = $this->{"chunk$i"};
|
||||
if($c !== null){
|
||||
$c = Chunk::fastDeserialize($c);
|
||||
$level->generateChunkCallback($c->getX(), $c->getZ(), $c);
|
||||
$level->generateChunkCallback($c->getX(), $c->getZ(), $this->state ? $c : null);
|
||||
}
|
||||
}
|
||||
|
||||
$level->generateChunkCallback($chunk->getX(), $chunk->getZ(), $chunk);
|
||||
$level->generateChunkCallback($chunk->getX(), $chunk->getZ(), $this->state ? $chunk : null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user