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:
Dylan K. Taylor
2021-06-26 21:54:18 +01:00
parent b8ebf8936e
commit 02fab77e55
4 changed files with 14 additions and 14 deletions

View File

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