mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 16:29:40 +00:00
fixed spawn-radius: 0
This commit is contained in:
parent
939dfd9269
commit
d68501c748
@ -969,7 +969,7 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
|
|||||||
assert(isset($this->usedChunks[Level::chunkHash($x, $z)]));
|
assert(isset($this->usedChunks[Level::chunkHash($x, $z)]));
|
||||||
$this->usedChunks[Level::chunkHash($x, $z)] = true;
|
$this->usedChunks[Level::chunkHash($x, $z)] = true;
|
||||||
|
|
||||||
$spawn = ++$this->spawnChunkLoadCount === $this->spawnThreshold;
|
$spawn = $this->spawnChunkLoadCount++ === $this->spawnThreshold;
|
||||||
$this->networkSession->startUsingChunk($x, $z, $spawn);
|
$this->networkSession->startUsingChunk($x, $z, $spawn);
|
||||||
|
|
||||||
if($spawn){
|
if($spawn){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user