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

@@ -339,7 +339,7 @@ void cProtocol_1_12::HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer)
// Version:
Json::Value Version;
Version["name"] = "Cuberite 1.12";
Version["protocol"] = cProtocolRecognizer::PROTO_VERSION_1_12;
Version["protocol"] = cMultiVersionProtocol::PROTO_VERSION_1_12;
// Players:
Json::Value Players;
@@ -1217,7 +1217,7 @@ void cProtocol_1_12_1::HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer)
// Version:
Json::Value Version;
Version["name"] = "Cuberite 1.12.1";
Version["protocol"] = cProtocolRecognizer::PROTO_VERSION_1_12_1;
Version["protocol"] = cMultiVersionProtocol::PROTO_VERSION_1_12_1;
// Players:
Json::Value Players;
@@ -1374,7 +1374,7 @@ void cProtocol_1_12_2::HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer)
// Version:
Json::Value Version;
Version["name"] = "Cuberite 1.12.2";
Version["protocol"] = cProtocolRecognizer::PROTO_VERSION_1_12_2;
Version["protocol"] = cMultiVersionProtocol::PROTO_VERSION_1_12_2;
// Players:
Json::Value Players;