summaryrefslogtreecommitdiffstats
path: root/src/Protocol/ProtocolRecognizer.cpp
diff options
context:
space:
mode:
authormathiascode <mathiascode@users.noreply.github.com>2017-02-21 16:11:28 +0100
committerMattes D <github@xoft.cz>2017-02-21 16:11:28 +0100
commitc89b20695df7d2a7afc85806d147e0b9ab1a23d1 (patch)
tree5561b8a92244eeb2043e5bc6f8053dcef73f4024 /src/Protocol/ProtocolRecognizer.cpp
parentChanged fish launching mechanism (#3520) (diff)
downloadcuberite-c89b20695df7d2a7afc85806d147e0b9ab1a23d1.tar
cuberite-c89b20695df7d2a7afc85806d147e0b9ab1a23d1.tar.gz
cuberite-c89b20695df7d2a7afc85806d147e0b9ab1a23d1.tar.bz2
cuberite-c89b20695df7d2a7afc85806d147e0b9ab1a23d1.tar.lz
cuberite-c89b20695df7d2a7afc85806d147e0b9ab1a23d1.tar.xz
cuberite-c89b20695df7d2a7afc85806d147e0b9ab1a23d1.tar.zst
cuberite-c89b20695df7d2a7afc85806d147e0b9ab1a23d1.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/ProtocolRecognizer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Protocol/ProtocolRecognizer.cpp b/src/Protocol/ProtocolRecognizer.cpp
index 04ac1bb2b..79270644f 100644
--- a/src/Protocol/ProtocolRecognizer.cpp
+++ b/src/Protocol/ProtocolRecognizer.cpp
@@ -56,6 +56,7 @@ AString cProtocolRecognizer::GetVersionTextFromInt(int a_ProtocolVersion)
case PROTO_VERSION_1_9_4: return "1.9.4";
case PROTO_VERSION_1_10_0: return "1.10";
case PROTO_VERSION_1_11_0: return "1.11";
+ case PROTO_VERSION_1_11_1: return "1.11.1";
}
ASSERT(!"Unknown protocol version");
return Printf("Unknown protocol (%d)", a_ProtocolVersion);
@@ -1079,6 +1080,11 @@ bool cProtocolRecognizer::TryRecognizeLengthedProtocol(UInt32 a_PacketLengthRema
m_Protocol = new cProtocol_1_11_0(m_Client, ServerAddress, ServerPort, NextState);
return true;
}
+ case PROTO_VERSION_1_11_1:
+ {
+ m_Protocol = new cProtocol_1_11_1(m_Client, ServerAddress, ServerPort, NextState);
+ return true;
+ }
default:
{
LOGD("Client \"%s\" uses an unsupported protocol (lengthed, version %u (0x%x))",