1
0

Initial support for 1.13 clients

+ Can look at *shape* of world
+ Can look at *shape* of inventory
This commit is contained in:
Tiger Wang
2018-08-01 00:21:44 +01:00
committed by Mattes D
parent 83013d19ca
commit 77731f80fb
8 changed files with 669 additions and 6 deletions

View File

@@ -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))",