Fixed some bad defaults, improved spawning

This commit is contained in:
Shoghi Cervantes
2015-04-27 14:19:01 +02:00
parent ef00103fec
commit 6fc7ee2775
2 changed files with 5 additions and 3 deletions

View File

@@ -648,7 +648,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
$this->level->requestChunk($X, $Z, $this, LevelProvider::ORDER_ZXY);
}
if($this->chunkLoadCount >= $this->spawnThreshold and $this->spawned === false){
if($this->chunkLoadCount >= $this->spawnThreshold and $this->spawned === false and $this->teleportPosition === null){
$this->spawned = true;
$this->sendSettings();
@@ -1608,6 +1608,8 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
$this->dataPacket($pk->setChannel(Network::CHANNEL_PRIORITY));
}
$this->teleportPosition = $this->getPosition();
$this->orderChunks();
$this->sendNextChunk();
break;