summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-02-03 13:16:43 +0100
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-02-03 13:16:43 +0100
commitcb7ee4ac178690f018836daa3a010592586d5a53 (patch)
tree2f7ab54de70612bbcd3d99c25c82670b7fa8db2a /src
parentAdded packet PlayerDigging (diff)
downloadAltCraft-cb7ee4ac178690f018836daa3a010592586d5a53.tar
AltCraft-cb7ee4ac178690f018836daa3a010592586d5a53.tar.gz
AltCraft-cb7ee4ac178690f018836daa3a010592586d5a53.tar.bz2
AltCraft-cb7ee4ac178690f018836daa3a010592586d5a53.tar.lz
AltCraft-cb7ee4ac178690f018836daa3a010592586d5a53.tar.xz
AltCraft-cb7ee4ac178690f018836daa3a010592586d5a53.tar.zst
AltCraft-cb7ee4ac178690f018836daa3a010592586d5a53.zip
Diffstat (limited to 'src')
-rw-r--r--src/Stream.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Stream.cpp b/src/Stream.cpp
index a7884d6..d66335e 100644
--- a/src/Stream.cpp
+++ b/src/Stream.cpp
@@ -289,7 +289,8 @@ void StreamOutput::WriteNbtTag(const std::vector<unsigned char> &value) {
}
void StreamOutput::WritePosition(const Vector &value) {
- LOG(FATAL) << "Used unimplemented Position: " << value.x << ", " << value.y << " " << value.z;
+ unsigned long long pos = ((value.x & 0x3FFFFFF) << 38) | ((value.y & 0xFFF) << 26) | (value.z & 0x3FFFFFF);
+ WriteLong(pos);
}
void StreamOutput::WriteAngle(unsigned char value) {