summaryrefslogtreecommitdiffstats
path: root/src/Protocol/ProtocolRecognizer.cpp
diff options
context:
space:
mode:
authorPersson-dev <sim16.prib@gmail.com>2022-04-21 13:27:45 +0200
committerAlexander Harkness <me@bearbin.net>2022-04-21 20:57:55 +0200
commit9c42d09ff890fb5f6f5eeab0714b0ed7ce515d06 (patch)
tree8b0c8a04cfcf089bf8491f427a6eac03216f2c11 /src/Protocol/ProtocolRecognizer.cpp
parentImplement farmland trampling (#5401) (diff)
downloadcuberite-9c42d09ff890fb5f6f5eeab0714b0ed7ce515d06.tar
cuberite-9c42d09ff890fb5f6f5eeab0714b0ed7ce515d06.tar.gz
cuberite-9c42d09ff890fb5f6f5eeab0714b0ed7ce515d06.tar.bz2
cuberite-9c42d09ff890fb5f6f5eeab0714b0ed7ce515d06.tar.lz
cuberite-9c42d09ff890fb5f6f5eeab0714b0ed7ce515d06.tar.xz
cuberite-9c42d09ff890fb5f6f5eeab0714b0ed7ce515d06.tar.zst
cuberite-9c42d09ff890fb5f6f5eeab0714b0ed7ce515d06.zip
Diffstat (limited to 'src/Protocol/ProtocolRecognizer.cpp')
-rw-r--r--src/Protocol/ProtocolRecognizer.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Protocol/ProtocolRecognizer.cpp b/src/Protocol/ProtocolRecognizer.cpp
index 9062eb9b5..7dbfbda8c 100644
--- a/src/Protocol/ProtocolRecognizer.cpp
+++ b/src/Protocol/ProtocolRecognizer.cpp
@@ -66,6 +66,10 @@ AString cMultiVersionProtocol::GetVersionTextFromInt(cProtocol::Version a_Protoc
case cProtocol::Version::v1_13_1: return "1.13.1";
case cProtocol::Version::v1_13_2: return "1.13.2";
case cProtocol::Version::v1_14: return "1.14";
+ case cProtocol::Version::v1_14_1: return "1.14.1";
+ case cProtocol::Version::v1_14_2: return "1.14.2";
+ case cProtocol::Version::v1_14_3: return "1.14.3";
+ case cProtocol::Version::v1_14_4: return "1.14.4";
}
ASSERT(!"Unknown protocol version");
@@ -338,6 +342,11 @@ std::unique_ptr<cProtocol> cMultiVersionProtocol::TryRecognizeLengthedProtocol(c
case static_cast<UInt32>(cProtocol::Version::v1_13_1): return std::make_unique<cProtocol_1_13_1>(&a_Client, ServerAddress, NextState);
case static_cast<UInt32>(cProtocol::Version::v1_13_2): return std::make_unique<cProtocol_1_13_2>(&a_Client, ServerAddress, NextState);
case static_cast<UInt32>(cProtocol::Version::v1_14): return std::make_unique<cProtocol_1_14> (&a_Client, ServerAddress, NextState);
+ case static_cast<UInt32>(cProtocol::Version::v1_14_1): return std::make_unique<cProtocol_1_14_1>(&a_Client, ServerAddress, NextState);
+ case static_cast<UInt32>(cProtocol::Version::v1_14_2): return std::make_unique<cProtocol_1_14_2>(&a_Client, ServerAddress, NextState);
+ case static_cast<UInt32>(cProtocol::Version::v1_14_3): return std::make_unique<cProtocol_1_14_3>(&a_Client, ServerAddress, NextState);
+ case static_cast<UInt32>(cProtocol::Version::v1_14_4): return std::make_unique<cProtocol_1_14_4>(&a_Client, ServerAddress, NextState);
+
default:
{
LOGD("Client \"%s\" uses an unsupported protocol (lengthed, version %u (0x%x))",