mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
PopulationTask: Throw AssumptionFailedError if center chunk is null for some reason
This commit is contained in:
parent
2e2515354c
commit
94f4ef5862
@ -149,7 +149,9 @@ class PopulationTask extends AsyncTask{
|
|||||||
/** @var World $world */
|
/** @var World $world */
|
||||||
$world = $this->fetchLocal(self::TLS_KEY_WORLD);
|
$world = $this->fetchLocal(self::TLS_KEY_WORLD);
|
||||||
if($world->isLoaded()){
|
if($world->isLoaded()){
|
||||||
$chunk = $this->chunk !== null ? FastChunkSerializer::deserializeTerrain($this->chunk) : null;
|
$chunk = $this->chunk !== null ?
|
||||||
|
FastChunkSerializer::deserializeTerrain($this->chunk) :
|
||||||
|
throw new AssumptionFailedError("Center chunk should never be null");
|
||||||
|
|
||||||
for($i = 0; $i < 9; ++$i){
|
for($i = 0; $i < 9; ++$i){
|
||||||
if($i === 4){
|
if($i === 4){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user