diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2018-08-01 01:21:44 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2019-09-16 15:37:54 +0200 |
commit | 77731f80fb89182e8697d9daad6c8400e480fb6d (patch) | |
tree | c4b7131f8a51e74d1f6c5e7e7f6b1602e39e80c8 /src/Protocol/ProtocolRecognizer.cpp | |
parent | GCC: Added pragma to ignore fallthrough warnings within Unicode Inc. code (#4392) (diff) | |
download | cuberite-77731f80fb89182e8697d9daad6c8400e480fb6d.tar cuberite-77731f80fb89182e8697d9daad6c8400e480fb6d.tar.gz cuberite-77731f80fb89182e8697d9daad6c8400e480fb6d.tar.bz2 cuberite-77731f80fb89182e8697d9daad6c8400e480fb6d.tar.lz cuberite-77731f80fb89182e8697d9daad6c8400e480fb6d.tar.xz cuberite-77731f80fb89182e8697d9daad6c8400e480fb6d.tar.zst cuberite-77731f80fb89182e8697d9daad6c8400e480fb6d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/ProtocolRecognizer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Protocol/ProtocolRecognizer.cpp b/src/Protocol/ProtocolRecognizer.cpp index 9bfa0f105..d0f4c6f53 100644 --- a/src/Protocol/ProtocolRecognizer.cpp +++ b/src/Protocol/ProtocolRecognizer.cpp @@ -12,6 +12,7 @@ #include "Protocol_1_10.h" #include "Protocol_1_11.h" #include "Protocol_1_12.h" +#include "Protocol_1_13.h" #include "Packetizer.h" #include "../ClientHandle.h" #include "../Root.h" @@ -1150,6 +1151,11 @@ bool cProtocolRecognizer::TryRecognizeLengthedProtocol(UInt32 a_PacketLengthRema m_Protocol = new cProtocol_1_12_2(m_Client, ServerAddress, ServerPort, NextState); return true; } + case PROTO_VERSION_1_13: + { + m_Protocol = new cProtocol_1_13(m_Client, ServerAddress, ServerPort, NextState); + return true; + } default: { LOGD("Client \"%s\" uses an unsupported protocol (lengthed, version %u (0x%x))", |