mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +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);
|
$generator->populateChunk($manager, $this->chunkX, $this->chunkZ);
|
||||||
$chunk = $manager->getChunk($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();
|
$chunk->setPopulated();
|
||||||
|
|
||||||
$this->chunk = FastChunkSerializer::serializeTerrain($chunk);
|
$this->chunk = FastChunkSerializer::serializeTerrain($chunk);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user