diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-10-03 18:43:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-03 18:43:22 +0200 |
commit | 1e4850a6c5faed2d7906fe9d19ac327efefe7922 (patch) | |
tree | d9ddba00b1dade19ce695ea7d38ffe13cac62067 /src/Protocol/Protocol_1_8.cpp | |
parent | Protocol 1.8: fix duplicated vector component in spawn packet (#5314) (diff) | |
download | cuberite-1e4850a6c5faed2d7906fe9d19ac327efefe7922.tar cuberite-1e4850a6c5faed2d7906fe9d19ac327efefe7922.tar.gz cuberite-1e4850a6c5faed2d7906fe9d19ac327efefe7922.tar.bz2 cuberite-1e4850a6c5faed2d7906fe9d19ac327efefe7922.tar.lz cuberite-1e4850a6c5faed2d7906fe9d19ac327efefe7922.tar.xz cuberite-1e4850a6c5faed2d7906fe9d19ac327efefe7922.tar.zst cuberite-1e4850a6c5faed2d7906fe9d19ac327efefe7922.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol_1_8.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol_1_8.cpp b/src/Protocol/Protocol_1_8.cpp index 1260e3ef8..d29126e4e 100644 --- a/src/Protocol/Protocol_1_8.cpp +++ b/src/Protocol/Protocol_1_8.cpp @@ -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: |