1
0

cProtocolRecognizer goes on a diet (#4770)

- Removed inheritance from cProtocol
This commit is contained in:
Tiger Wang
2020-07-17 18:46:50 +01:00
committed by GitHub
parent d8406c7c58
commit ff2c246de2
10 changed files with 247 additions and 1164 deletions

View File

@@ -619,7 +619,7 @@ void cProtocol_1_11_0::HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer)
// Version:
Json::Value Version;
Version["name"] = "Cuberite 1.11";
Version["protocol"] = cProtocolRecognizer::PROTO_VERSION_1_11_0;
Version["protocol"] = cMultiVersionProtocol::PROTO_VERSION_1_11_0;
// Players:
Json::Value Players;
@@ -1241,7 +1241,7 @@ void cProtocol_1_11_1::HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer)
// Version:
Json::Value Version;
Version["name"] = "Cuberite 1.11.1";
Version["protocol"] = cProtocolRecognizer::PROTO_VERSION_1_11_1;
Version["protocol"] = cMultiVersionProtocol::PROTO_VERSION_1_11_1;
// Players:
Json::Value Players;