mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
more AssumptionFailedError hacks for PHPStan :(
the code in this class is really horrible
This commit is contained in:
parent
8de30e8162
commit
88f799da2c
@ -133,6 +133,9 @@ class PopulationTask extends AsyncTask{
|
||||
|
||||
$generator->populateChunk($manager, $this->chunkX, $this->chunkZ);
|
||||
$chunk = $manager->getChunk($this->chunkX, $this->chunkZ);
|
||||
if($chunk === null){
|
||||
throw new AssumptionFailedError("We just generated this chunk, so it must exist");
|
||||
}
|
||||
$chunk->setPopulated();
|
||||
|
||||
$this->chunk = FastChunkSerializer::serializeTerrain($chunk);
|
||||
|
Loading…
x
Reference in New Issue
Block a user