mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
World: change 'closed' to 'unloaded'
this makes more sense overall from a reader's perspective. and also provide a rug-jerk for any idiots using World->close() when they aren't supposed to? ....
This commit is contained in:
@ -136,7 +136,7 @@ class PopulationTask extends AsyncTask{
|
||||
public function onCompletion() : void{
|
||||
/** @var World $world */
|
||||
$world = $this->fetchLocal(self::TLS_KEY_WORLD);
|
||||
if(!$world->isClosed()){
|
||||
if($world->isLoaded()){
|
||||
$chunk = $this->chunk !== null ? FastChunkSerializer::deserialize($this->chunk) : null;
|
||||
|
||||
for($i = 0; $i < 9; ++$i){
|
||||
|
Reference in New Issue
Block a user