more AssumptionFailedError hacks for PHPStan :(

the code in this class is really horrible
This commit is contained in:
Dylan K. Taylor 2021-10-01 23:05:48 +01:00
parent 8de30e8162
commit 88f799da2c
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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);