Fix spawnForced not specified in SetSpawnPositionPacket, close #1046 (#1047)

* Fix #1046

* Change spawnForced to false
This commit is contained in:
Misteboss 2017-06-09 19:12:57 +02:00 committed by Dylan K. Taylor
parent cd66f58526
commit c43ab12a9a

View File

@ -1184,6 +1184,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$pk->y = (int) $this->spawnPosition->y;
$pk->z = (int) $this->spawnPosition->z;
$pk->spawnType = SetSpawnPositionPacket::TYPE_PLAYER_SPAWN;
$pk->spawnForced = false;
$this->dataPacket($pk);
}