diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-08 13:10:55 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-08 13:10:55 +0200 |
commit | da85eb9db2a43f37dd6a40739b71b12124a9c918 (patch) | |
tree | b134ec489be3d4b1888ebce2ad08fbd478bfaefc /source/Protocol/ProtocolRecognizer.cpp | |
parent | ProtoProxy: Added server-ping parsing (diff) | |
download | cuberite-da85eb9db2a43f37dd6a40739b71b12124a9c918.tar cuberite-da85eb9db2a43f37dd6a40739b71b12124a9c918.tar.gz cuberite-da85eb9db2a43f37dd6a40739b71b12124a9c918.tar.bz2 cuberite-da85eb9db2a43f37dd6a40739b71b12124a9c918.tar.lz cuberite-da85eb9db2a43f37dd6a40739b71b12124a9c918.tar.xz cuberite-da85eb9db2a43f37dd6a40739b71b12124a9c918.tar.zst cuberite-da85eb9db2a43f37dd6a40739b71b12124a9c918.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Protocol/ProtocolRecognizer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/Protocol/ProtocolRecognizer.cpp b/source/Protocol/ProtocolRecognizer.cpp index cae267524..3b971cf49 100644 --- a/source/Protocol/ProtocolRecognizer.cpp +++ b/source/Protocol/ProtocolRecognizer.cpp @@ -50,6 +50,7 @@ AString cProtocolRecognizer::GetVersionTextFromInt(int a_ProtocolVersion) case PROTO_VERSION_1_4_4: return "1.4.4";
case PROTO_VERSION_1_4_6: return "1.4.6";
case PROTO_VERSION_1_5_0: return "1.5";
+ case PROTO_VERSION_1_5_2: return "1.5.2";
}
ASSERT(!"Unknown protocol version");
return Printf("Unknown protocol (%d)", a_ProtocolVersion);
@@ -650,6 +651,7 @@ bool cProtocolRecognizer::TryRecognizeProtocol(void) return true;
}
case PROTO_VERSION_1_5_0:
+ case PROTO_VERSION_1_5_2:
{
m_Protocol = new cProtocol150(m_Client);
return true;
@@ -686,6 +688,7 @@ void cProtocolRecognizer::HandleServerPing(void) case PROTO_VERSION_1_4_4:
case PROTO_VERSION_1_4_6:
case PROTO_VERSION_1_5_0:
+ case PROTO_VERSION_1_5_2:
{
// The server list ping now has 1 more byte of "magic". Mojang just loves to complicate stuff.
// http://wiki.vg/wiki/index.php?title=Protocol&oldid=3101#Server_List_Ping_.280xFE.29
|