Timezone: Apparently timezone_id returned by timezone_abbreviations_list() may be null...

This commit is contained in:
Dylan K. Taylor
2022-11-12 14:40:19 +00:00
parent ef100b248b
commit d5e3636908
2 changed files with 1 additions and 9 deletions

View File

@ -300,14 +300,6 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
$this->chunkLoader = new PlayerChunkLoader($spawnLocation);
$world = $spawnLocation->getWorld();
//load the spawn chunk so we can see the terrain
$xSpawnChunk = $spawnLocation->getFloorX() >> Chunk::COORD_BIT_SIZE;
$zSpawnChunk = $spawnLocation->getFloorZ() >> Chunk::COORD_BIT_SIZE;
$world->registerChunkLoader($this->chunkLoader, $xSpawnChunk, $zSpawnChunk, true);
$world->registerChunkListener($this, $xSpawnChunk, $zSpawnChunk);
$this->usedChunks[World::chunkHash($xSpawnChunk, $zSpawnChunk)] = UsedChunkStatus::NEEDED();
parent::__construct($spawnLocation, $this->playerInfo->getSkin(), $namedtag);
}