diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-10 15:01:07 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-10 15:01:07 +0100 |
commit | 8e84cbc083b3c51ebdefe32a47eadc0f8a270d48 (patch) | |
tree | 61b7ef07aa29c3c0fa9c859698e68f8a4a465491 /source/Protocol/Protocol142.cpp | |
parent | ProtoProxy: Updated to protocol version 1.4.2 (diff) | |
download | cuberite-8e84cbc083b3c51ebdefe32a47eadc0f8a270d48.tar cuberite-8e84cbc083b3c51ebdefe32a47eadc0f8a270d48.tar.gz cuberite-8e84cbc083b3c51ebdefe32a47eadc0f8a270d48.tar.bz2 cuberite-8e84cbc083b3c51ebdefe32a47eadc0f8a270d48.tar.lz cuberite-8e84cbc083b3c51ebdefe32a47eadc0f8a270d48.tar.xz cuberite-8e84cbc083b3c51ebdefe32a47eadc0f8a270d48.tar.zst cuberite-8e84cbc083b3c51ebdefe32a47eadc0f8a270d48.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Protocol/Protocol142.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/Protocol/Protocol142.cpp b/source/Protocol/Protocol142.cpp index 17501169d..a9d49cd79 100644 --- a/source/Protocol/Protocol142.cpp +++ b/source/Protocol/Protocol142.cpp @@ -76,9 +76,17 @@ cProtocol142::~cProtocol142() -int cProtocol142::ParseLogin(void)
+int cProtocol142::ParseLocaleViewDistance(void)
{
- // This packet seems to be back in 1.4.2, no documentation yet.
+ HANDLE_PACKET_READ(ReadBEUTF16String16, AString, Locale);
+ HANDLE_PACKET_READ(ReadChar, char, ViewDistance);
+ HANDLE_PACKET_READ(ReadChar, char, ChatFlags);
+ HANDLE_PACKET_READ(ReadChar, char, ClientDifficulty);
+ HANDLE_PACKET_READ(ReadChar, char, ShouldShowCape); // <-- new in 1.4.2
+ // TODO: m_Client->HandleLocale(Locale);
+ // TODO: m_Client->HandleViewDistance(ViewDistance);
+ // TODO: m_Client->HandleChatFlags(ChatFlags);
+ // Ignoring client difficulty
return PARSE_OK;
}
|