diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 9b56c78e2..93b0a70f7 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -852,11 +852,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade $this->level->registerChunkLoader($this, $X, $Z, false); if(!$this->level->populateChunk($X, $Z)){ - if($this->spawned and $this->teleportPosition === null){ - continue; - }else{ - break; - } + continue; } unset($this->loadQueue[$index]); @@ -4192,6 +4188,9 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade public function onChunkChanged(Chunk $chunk){ if(isset($this->usedChunks[$hash = Level::chunkHash($chunk->getX(), $chunk->getZ())])){ $this->usedChunks[$hash] = false; + if(!$this->spawned){ + $this->nextChunkOrderRun = 0; + } } }