1
0

Authentication flow: move construction, slim down classes (#5312)

- Remove extra members in ForgeHandshake
This commit is contained in:
Tiger Wang
2021-10-02 21:27:32 +01:00
committed by GitHub
parent 0197f25c07
commit 1a0d9450ea
11 changed files with 80 additions and 102 deletions

View File

@@ -2161,6 +2161,7 @@ void cProtocol_1_8_0::HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer)
auto NumPlayers = static_cast<signed>(Server->GetNumPlayers());
auto MaxPlayers = static_cast<signed>(Server->GetMaxPlayers());
AString Favicon = Server->GetFaviconData();
cRoot::Get()->GetPluginManager()->CallHookServerPing(*m_Client, ServerDescription, NumPlayers, MaxPlayers, Favicon);
// Version:
@@ -2177,7 +2178,7 @@ void cProtocol_1_8_0::HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer)
// Description:
Json::Value Description;
Description["text"] = ServerDescription.c_str();
Description["text"] = std::move(ServerDescription);
// Create the response:
Json::Value ResponseValue;