Use the world spawn by default for players, fixes #1616

This commit is contained in:
Shoghi Cervantes
2014-07-11 12:45:43 +02:00
parent c16f45ce39
commit 4bd2f3aea8
2 changed files with 36 additions and 25 deletions

View File

@ -633,11 +633,11 @@ class Server{
new Double(2, $spawn->z)
)),
new String("Level", $this->getDefaultLevel()->getName()),
new String("SpawnLevel", $this->getDefaultLevel()->getName()),
new Int("SpawnX", (int) $spawn->x),
new Int("SpawnY", (int) $spawn->y),
new Int("SpawnZ", (int) $spawn->z),
new Byte("SpawnForced", 1), //TODO
//new String("SpawnLevel", $this->getDefaultLevel()->getName()),
//new Int("SpawnX", (int) $spawn->x),
//new Int("SpawnY", (int) $spawn->y),
//new Int("SpawnZ", (int) $spawn->z),
//new Byte("SpawnForced", 1), //TODO
new Enum("Inventory", []),
new Compound("Achievements", []),
new Int("playerGameType", $this->getGamemode()),