summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/Protocol/Protocol142.cpp12
-rw-r--r--source/Protocol/Protocol142.h2
2 files changed, 11 insertions, 3 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;
}
diff --git a/source/Protocol/Protocol142.h b/source/Protocol/Protocol142.h
index 96256044f..aba548efb 100644
--- a/source/Protocol/Protocol142.h
+++ b/source/Protocol/Protocol142.h
@@ -30,7 +30,7 @@ public:
virtual void SendTimeUpdate (Int64 a_WorldAge, Int64 a_TimeOfDay) override;
// Specific packet parsers:
- virtual int ParseLogin (void) override;
+ virtual int ParseLocaleViewDistance(void) override;
} ;