summaryrefslogtreecommitdiffstats
path: root/source/Protocol/ProtocolRecognizer.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-08 14:59:15 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-08 14:59:15 +0200
commit791bf732fd490700748f798c617ecac1af152cd4 (patch)
tree2ca9be2cebeeb560b60c108959e805126d3173ed /source/Protocol/ProtocolRecognizer.cpp
parentPickups have an initial health of 5 (diff)
downloadcuberite-791bf732fd490700748f798c617ecac1af152cd4.tar
cuberite-791bf732fd490700748f798c617ecac1af152cd4.tar.gz
cuberite-791bf732fd490700748f798c617ecac1af152cd4.tar.bz2
cuberite-791bf732fd490700748f798c617ecac1af152cd4.tar.lz
cuberite-791bf732fd490700748f798c617ecac1af152cd4.tar.xz
cuberite-791bf732fd490700748f798c617ecac1af152cd4.tar.zst
cuberite-791bf732fd490700748f798c617ecac1af152cd4.zip
Diffstat (limited to 'source/Protocol/ProtocolRecognizer.cpp')
-rw-r--r--source/Protocol/ProtocolRecognizer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/Protocol/ProtocolRecognizer.cpp b/source/Protocol/ProtocolRecognizer.cpp
index 0b7887f5c..ec10eeb12 100644
--- a/source/Protocol/ProtocolRecognizer.cpp
+++ b/source/Protocol/ProtocolRecognizer.cpp
@@ -53,6 +53,7 @@ AString cProtocolRecognizer::GetVersionTextFromInt(int a_ProtocolVersion)
case PROTO_VERSION_1_5_0: return "1.5";
case PROTO_VERSION_1_5_2: return "1.5.2";
case PROTO_VERSION_1_6_1: return "1.6.1";
+ case PROTO_VERSION_1_6_2: return "1.6.2";
}
ASSERT(!"Unknown protocol version");
return Printf("Unknown protocol (%d)", a_ProtocolVersion);
@@ -684,6 +685,11 @@ bool cProtocolRecognizer::TryRecognizeProtocol(void)
m_Protocol = new cProtocol161(m_Client);
return true;
}
+ case PROTO_VERSION_1_6_2:
+ {
+ m_Protocol = new cProtocol162(m_Client);
+ return true;
+ }
}
m_Protocol = new cProtocol125(m_Client);
return true;
@@ -718,6 +724,7 @@ void cProtocolRecognizer::HandleServerPing(void)
case PROTO_VERSION_1_5_0:
case PROTO_VERSION_1_5_2:
case PROTO_VERSION_1_6_1:
+ case PROTO_VERSION_1_6_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