summaryrefslogtreecommitdiffstats
path: root/src/Protocol/ProtocolRecognizer.cpp
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2017-08-17 16:25:53 +0200
committerMattes D <github@xoft.cz>2017-08-17 16:25:53 +0200
commit238f5bb3389036e919e427510f8fc8f1825c13e5 (patch)
tree6298f83c7d563496e44caa02fc2704ee7c7f9804 /src/Protocol/ProtocolRecognizer.cpp
parentChanged int parameters to vector parameters in cCuboid and simulators (#3874) (diff)
downloadcuberite-238f5bb3389036e919e427510f8fc8f1825c13e5.tar
cuberite-238f5bb3389036e919e427510f8fc8f1825c13e5.tar.gz
cuberite-238f5bb3389036e919e427510f8fc8f1825c13e5.tar.bz2
cuberite-238f5bb3389036e919e427510f8fc8f1825c13e5.tar.lz
cuberite-238f5bb3389036e919e427510f8fc8f1825c13e5.tar.xz
cuberite-238f5bb3389036e919e427510f8fc8f1825c13e5.tar.zst
cuberite-238f5bb3389036e919e427510f8fc8f1825c13e5.zip
Diffstat (limited to 'src/Protocol/ProtocolRecognizer.cpp')
-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 43facde72..a65fb931e 100644
--- a/src/Protocol/ProtocolRecognizer.cpp
+++ b/src/Protocol/ProtocolRecognizer.cpp
@@ -59,6 +59,7 @@ AString cProtocolRecognizer::GetVersionTextFromInt(int a_ProtocolVersion)
case PROTO_VERSION_1_11_0: return "1.11";
case PROTO_VERSION_1_11_1: return "1.11.1";
case PROTO_VERSION_1_12: return "1.12";
+ case PROTO_VERSION_1_12_1: return "1.12.1";
}
ASSERT(!"Unknown protocol version");
return Printf("Unknown protocol (%d)", a_ProtocolVersion);
@@ -1107,6 +1108,11 @@ bool cProtocolRecognizer::TryRecognizeLengthedProtocol(UInt32 a_PacketLengthRema
m_Protocol = new cProtocol_1_12(m_Client, ServerAddress, ServerPort, NextState);
return true;
}
+ case PROTO_VERSION_1_12_1:
+ {
+ m_Protocol = new cProtocol_1_12_1(m_Client, ServerAddress, ServerPort, NextState);
+ return true;
+ }
default:
{
LOGD("Client \"%s\" uses an unsupported protocol (lengthed, version %u (0x%x))",