diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-12 01:44:20 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-12 01:44:20 +0200 |
commit | 8151c79a875a327e364def4960527514ee584136 (patch) | |
tree | 81fe6a592476614a236b42a7fd113405fd1bc6c0 /src/Protocol | |
parent | 1.8: Fixed eating. (diff) | |
download | cuberite-8151c79a875a327e364def4960527514ee584136.tar cuberite-8151c79a875a327e364def4960527514ee584136.tar.gz cuberite-8151c79a875a327e364def4960527514ee584136.tar.bz2 cuberite-8151c79a875a327e364def4960527514ee584136.tar.lz cuberite-8151c79a875a327e364def4960527514ee584136.tar.xz cuberite-8151c79a875a327e364def4960527514ee584136.tar.zst cuberite-8151c79a875a327e364def4960527514ee584136.zip |
Diffstat (limited to 'src/Protocol')
-rw-r--r-- | src/Protocol/Protocol18x.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp index ba39bb3e6..4d74995db 100644 --- a/src/Protocol/Protocol18x.cpp +++ b/src/Protocol/Protocol18x.cpp @@ -1403,9 +1403,7 @@ void cProtocol180::SendUpdateBlockEntity(cBlockEntity & a_BlockEntity) ASSERT(m_State == 3); // In game mode? cPacketizer Pkt(*this, 0x35); // Update tile entity packet - Pkt.WriteInt(a_BlockEntity.GetPosX()); - Pkt.WriteShort(a_BlockEntity.GetPosY()); - Pkt.WriteInt(a_BlockEntity.GetPosZ()); + Pkt.WritePosition(a_BlockEntity.GetPosX(), a_BlockEntity.GetPosY(), a_BlockEntity.GetPosZ()); Byte Action = 0; switch (a_BlockEntity.GetBlockType()) @@ -2995,11 +2993,7 @@ void cProtocol180::cPacketizer::WriteBlockEntity(const cBlockEntity & a_BlockEnt } Writer.Finish(); - - AString Compressed; - CompressStringGZIP(Writer.GetResult().data(), Writer.GetResult().size(), Compressed); - WriteShort((short)Compressed.size()); - WriteBuf(Compressed.data(), Compressed.size()); + WriteBuf(Writer.GetResult().data(), Writer.GetResult().size()); } |