summaryrefslogtreecommitdiffstats
path: root/src/ByteBuffer.cpp
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2022-01-13 21:23:20 +0100
committerAlexander Harkness <me@bearbin.net>2022-01-14 18:24:59 +0100
commitb14874978a3e3da6439b8a71c9cd3c804ebab33c (patch)
treefe01c121ea5859be5c3ec62b54c719d4d1f7b4f6 /src/ByteBuffer.cpp
parentSimplify diff and remove excessive logging. (diff)
downloadcuberite-b14874978a3e3da6439b8a71c9cd3c804ebab33c.tar
cuberite-b14874978a3e3da6439b8a71c9cd3c804ebab33c.tar.gz
cuberite-b14874978a3e3da6439b8a71c9cd3c804ebab33c.tar.bz2
cuberite-b14874978a3e3da6439b8a71c9cd3c804ebab33c.tar.lz
cuberite-b14874978a3e3da6439b8a71c9cd3c804ebab33c.tar.xz
cuberite-b14874978a3e3da6439b8a71c9cd3c804ebab33c.tar.zst
cuberite-b14874978a3e3da6439b8a71c9cd3c804ebab33c.zip
Diffstat (limited to 'src/ByteBuffer.cpp')
-rw-r--r--src/ByteBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ByteBuffer.cpp b/src/ByteBuffer.cpp
index 80be9baee..e75051570 100644
--- a/src/ByteBuffer.cpp
+++ b/src/ByteBuffer.cpp
@@ -788,7 +788,7 @@ bool cByteBuffer::WriteXZYPosition64(Int32 a_BlockX, Int32 a_BlockY, Int32 a_Blo
CheckValid();
return WriteBEInt64(
(static_cast<Int64>(a_BlockX & 0x3FFFFFF) << 38) |
- (static_cast<Int64>(a_BlockZ & 0x3FFFFFF) << 26) |
+ (static_cast<Int64>(a_BlockZ & 0x3FFFFFF) << 12) |
(static_cast<Int64>(a_BlockY & 0xFFF))
);
}