summaryrefslogtreecommitdiffstats
path: root/source/ProtocolRecognizer.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-06 14:39:07 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-06 14:39:07 +0200
commit879806e5a149fbb133cb021670482b430a7e0aeb (patch)
tree88d3ce22546bab0910c7794b6d4e6ded8b09c8e9 /source/ProtocolRecognizer.cpp
parentProtoProxy: Added blockchange packet parsing (diff)
downloadcuberite-879806e5a149fbb133cb021670482b430a7e0aeb.tar
cuberite-879806e5a149fbb133cb021670482b430a7e0aeb.tar.gz
cuberite-879806e5a149fbb133cb021670482b430a7e0aeb.tar.bz2
cuberite-879806e5a149fbb133cb021670482b430a7e0aeb.tar.lz
cuberite-879806e5a149fbb133cb021670482b430a7e0aeb.tar.xz
cuberite-879806e5a149fbb133cb021670482b430a7e0aeb.tar.zst
cuberite-879806e5a149fbb133cb021670482b430a7e0aeb.zip
Diffstat (limited to 'source/ProtocolRecognizer.cpp')
-rw-r--r--source/ProtocolRecognizer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/ProtocolRecognizer.cpp b/source/ProtocolRecognizer.cpp
index 736694f5d..69b733c47 100644
--- a/source/ProtocolRecognizer.cpp
+++ b/source/ProtocolRecognizer.cpp
@@ -470,6 +470,9 @@ void cProtocolRecognizer::SendData(const char * a_Data, int a_Size)
bool cProtocolRecognizer::TryRecognizeProtocol(void)
{
+ // NOTE: If a new protocol is added or an old one is removed, adjust MCS_CLIENT_VERSIONS and
+ // MCS_PROTOCOL_VERSIONS macros in the header file
+
// The first packet should be a Handshake, 0x02:
unsigned char PacketType;
if (!m_Buffer.ReadByte(PacketType))