mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
Merge branch '3.7'
This commit is contained in:
commit
a0b8d9a64e
@ -316,6 +316,7 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
|
|||||||
//load the spawn chunk so we can see the terrain
|
//load the spawn chunk so we can see the terrain
|
||||||
$level->registerChunkLoader($this, $spawn->getFloorX() >> 4, $spawn->getFloorZ() >> 4, true);
|
$level->registerChunkLoader($this, $spawn->getFloorX() >> 4, $spawn->getFloorZ() >> 4, true);
|
||||||
$level->registerChunkListener($this, $spawn->getFloorX() >> 4, $spawn->getFloorZ() >> 4);
|
$level->registerChunkListener($this, $spawn->getFloorX() >> 4, $spawn->getFloorZ() >> 4);
|
||||||
|
$this->usedChunks[Level::chunkHash($spawn->getFloorX() >> 4, $spawn->getFloorZ() >> 4)] = false;
|
||||||
if($spawnReset){
|
if($spawnReset){
|
||||||
$spawn = $level->getSafeSpawn($spawn);
|
$spawn = $level->getSafeSpawn($spawn);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user