mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 00:25:04 +00:00
Player: revert accidental change from ef100b248b
This commit is contained in:
@ -300,6 +300,14 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
|||||||
|
|
||||||
$this->chunkLoader = new PlayerChunkLoader($spawnLocation);
|
$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);
|
parent::__construct($spawnLocation, $this->playerInfo->getSkin(), $namedtag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user