diff options
author | Lukas Pioch <lukas@zgow.de> | 2017-06-14 11:22:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-14 11:22:51 +0200 |
commit | 5a228fbc16c0b89e14b5fbf9940230f261c76c13 (patch) | |
tree | c43ada5f63b105e11ac6e902d9e5cdd42764af4d /src/Protocol/ProtocolRecognizer.cpp | |
parent | Remove redundant heighmap code (diff) | |
download | cuberite-5a228fbc16c0b89e14b5fbf9940230f261c76c13.tar cuberite-5a228fbc16c0b89e14b5fbf9940230f261c76c13.tar.gz cuberite-5a228fbc16c0b89e14b5fbf9940230f261c76c13.tar.bz2 cuberite-5a228fbc16c0b89e14b5fbf9940230f261c76c13.tar.lz cuberite-5a228fbc16c0b89e14b5fbf9940230f261c76c13.tar.xz cuberite-5a228fbc16c0b89e14b5fbf9940230f261c76c13.tar.zst cuberite-5a228fbc16c0b89e14b5fbf9940230f261c76c13.zip |
Diffstat (limited to 'src/Protocol/ProtocolRecognizer.cpp')
-rw-r--r-- | src/Protocol/ProtocolRecognizer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Protocol/ProtocolRecognizer.cpp b/src/Protocol/ProtocolRecognizer.cpp index 011070998..4487cdf6b 100644 --- a/src/Protocol/ProtocolRecognizer.cpp +++ b/src/Protocol/ProtocolRecognizer.cpp @@ -11,6 +11,7 @@ #include "Protocol_1_9.h" #include "Protocol_1_10.h" #include "Protocol_1_11.h" +#include "Protocol_1_12.h" #include "Packetizer.h" #include "../ClientHandle.h" #include "../Root.h" @@ -57,6 +58,7 @@ AString cProtocolRecognizer::GetVersionTextFromInt(int a_ProtocolVersion) 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"; + case PROTO_VERSION_1_12: return "1.12"; } ASSERT(!"Unknown protocol version"); return Printf("Unknown protocol (%d)", a_ProtocolVersion); @@ -1085,6 +1087,11 @@ bool cProtocolRecognizer::TryRecognizeLengthedProtocol(UInt32 a_PacketLengthRema m_Protocol = new cProtocol_1_11_1(m_Client, ServerAddress, ServerPort, NextState); return true; } + case PROTO_VERSION_1_12: + { + m_Protocol = new cProtocol_1_12(m_Client, ServerAddress, ServerPort, NextState); + return true; + } default: { LOGD("Client \"%s\" uses an unsupported protocol (lengthed, version %u (0x%x))", |