summaryrefslogtreecommitdiffstats
path: root/source/Protocol/ProtocolRecognizer.cpp
diff options
context:
space:
mode:
authorluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-31 21:18:01 +0100
committerluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-31 21:18:01 +0100
commit9012e834d7babadd3f2f2a41cbb8d03b8fb689a1 (patch)
tree492f95cabb6f02fd3933669936a58c3328c013ed /source/Protocol/ProtocolRecognizer.cpp
parentAdded the [Server].PrimaryServerVersion setting to settings.ini; 1.4.2 gets the correct version (diff)
downloadcuberite-9012e834d7babadd3f2f2a41cbb8d03b8fb689a1.tar
cuberite-9012e834d7babadd3f2f2a41cbb8d03b8fb689a1.tar.gz
cuberite-9012e834d7babadd3f2f2a41cbb8d03b8fb689a1.tar.bz2
cuberite-9012e834d7babadd3f2f2a41cbb8d03b8fb689a1.tar.lz
cuberite-9012e834d7babadd3f2f2a41cbb8d03b8fb689a1.tar.xz
cuberite-9012e834d7babadd3f2f2a41cbb8d03b8fb689a1.tar.zst
cuberite-9012e834d7babadd3f2f2a41cbb8d03b8fb689a1.zip
Diffstat (limited to 'source/Protocol/ProtocolRecognizer.cpp')
-rw-r--r--source/Protocol/ProtocolRecognizer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/Protocol/ProtocolRecognizer.cpp b/source/Protocol/ProtocolRecognizer.cpp
index fcd61d269..5b266bd34 100644
--- a/source/Protocol/ProtocolRecognizer.cpp
+++ b/source/Protocol/ProtocolRecognizer.cpp
@@ -9,6 +9,7 @@
#include "ProtocolRecognizer.h"
#include "Protocol125.h"
#include "Protocol132.h"
+#include "Protocol142.h"
#include "../ClientHandle.h"
#include "../Root.h"
#include "../World.h"
@@ -567,6 +568,11 @@ bool cProtocolRecognizer::TryRecognizeProtocol(void)
m_Protocol = new cProtocol132(m_Client);
return true;
}
+ if (ch == PROTO_VERSION_1_4_2)
+ {
+ m_Protocol = new cProtocol142(m_Client);
+ return true;
+ }
m_Protocol = new cProtocol125(m_Client);
return true;
}