diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-08 17:08:28 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-08 17:08:28 +0200 |
commit | fa2b69b3f36cdfa755f9c466abe49ece70303062 (patch) | |
tree | 3a6e0e8aac863195bff2909b137381c9751526bc /src/Protocol/Protocol18x.cpp | |
parent | Fixed more 1.8 packets. (diff) | |
download | cuberite-fa2b69b3f36cdfa755f9c466abe49ece70303062.tar cuberite-fa2b69b3f36cdfa755f9c466abe49ece70303062.tar.gz cuberite-fa2b69b3f36cdfa755f9c466abe49ece70303062.tar.bz2 cuberite-fa2b69b3f36cdfa755f9c466abe49ece70303062.tar.lz cuberite-fa2b69b3f36cdfa755f9c466abe49ece70303062.tar.xz cuberite-fa2b69b3f36cdfa755f9c466abe49ece70303062.tar.zst cuberite-fa2b69b3f36cdfa755f9c466abe49ece70303062.zip |
Diffstat (limited to 'src/Protocol/Protocol18x.cpp')
-rw-r--r-- | src/Protocol/Protocol18x.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp index ffa8d5ecb..eebac7a05 100644 --- a/src/Protocol/Protocol18x.cpp +++ b/src/Protocol/Protocol18x.cpp @@ -1132,3 +1132,20 @@ void cProtocol180::HandlePacketBlockDig(cByteBuffer & a_ByteBuffer) + +void cProtocol180::HandlePacketTabComplete(cByteBuffer & a_ByteBuffer) +{ + HANDLE_READ(a_ByteBuffer, ReadVarUTF8String, AString, Text); + HANDLE_READ(a_ByteBuffer, ReadBool, bool, HasPosition); + + if (HasPosition) + { + HANDLE_READ(a_ByteBuffer, ReadBEInt64, Int64, Position); + } + + m_Client->HandleTabCompletion(Text); +} + + + + |