diff options
author | madmaxoft <github@xoft.cz> | 2013-09-08 17:57:50 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-09-08 17:57:50 +0200 |
commit | 6c0c1f1d0c8606a2c7d3cbb56e2f6e36dc592995 (patch) | |
tree | 7e2c75487c25beb4650ee43a26d4754f2a79c224 | |
parent | ProtoProxy: Logs are saved to a Logs subfolder. (diff) | |
download | cuberite-6c0c1f1d0c8606a2c7d3cbb56e2f6e36dc592995.tar cuberite-6c0c1f1d0c8606a2c7d3cbb56e2f6e36dc592995.tar.gz cuberite-6c0c1f1d0c8606a2c7d3cbb56e2f6e36dc592995.tar.bz2 cuberite-6c0c1f1d0c8606a2c7d3cbb56e2f6e36dc592995.tar.lz cuberite-6c0c1f1d0c8606a2c7d3cbb56e2f6e36dc592995.tar.xz cuberite-6c0c1f1d0c8606a2c7d3cbb56e2f6e36dc592995.tar.zst cuberite-6c0c1f1d0c8606a2c7d3cbb56e2f6e36dc592995.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Protocol/Protocol132.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/source/Protocol/Protocol132.cpp b/source/Protocol/Protocol132.cpp index 26a1a9fad..a06eb0b8b 100644 --- a/source/Protocol/Protocol132.cpp +++ b/source/Protocol/Protocol132.cpp @@ -452,8 +452,17 @@ void cProtocol132::SendTabCompletionResults(const AStringVector & a_Results) void cProtocol132::SendUnloadChunk(int a_ChunkX, int a_ChunkZ) { - // Not used in 1.3.2 - // Does it unload chunks on its own? + // Unloading the chunk is done by sending a "map chunk" packet + // with IncludeInitialize set to true and primary bitmap set to 0: + cCSLock Lock(m_CSPacket); + WriteByte(PACKET_CHUNK_DATA); + WriteInt (a_ChunkX); + WriteInt (a_ChunkZ); + WriteBool(true); // IncludeInitialize + WriteShort(0); // Primary bitmap + WriteShort(0); // Add bitmap + WriteInt(0); + Flush(); } |