1
0

World: change spawnpoint type to int (#5313)

* World: change spawnpoint type to int

As Vanilla does.
This commit is contained in:
Tiger Wang
2021-10-03 17:43:22 +01:00
committed by GitHub
parent 8b0d0e96c3
commit 1e4850a6c5
8 changed files with 57 additions and 57 deletions

View File

@@ -844,7 +844,7 @@ void cProtocol_1_8_0::SendLogin(const cPlayer & a_Player, const cWorld & a_World
// Send the spawn position:
{
cPacketizer Pkt(*this, pktSpawnPosition);
Pkt.WriteXYZPosition64(FloorC(a_World.GetSpawnX()), FloorC(a_World.GetSpawnY()), FloorC(a_World.GetSpawnZ()));
Pkt.WriteXYZPosition64(a_World.GetSpawnX(), a_World.GetSpawnY(), a_World.GetSpawnZ());
}
// Send the server difficulty: