summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_10.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2017-07-28 18:54:40 +0200
committerGitHub <noreply@github.com>2017-07-28 18:54:40 +0200
commiteb4432bb6260eaadb41495149739244308e9e125 (patch)
tree8f1787586d23194ef5f4d7af8a4454f0ea9e179a /src/Protocol/Protocol_1_10.cpp
parentHandle incomplete packets in cProtocolRecognizer (diff)
downloadcuberite-eb4432bb6260eaadb41495149739244308e9e125.tar
cuberite-eb4432bb6260eaadb41495149739244308e9e125.tar.gz
cuberite-eb4432bb6260eaadb41495149739244308e9e125.tar.bz2
cuberite-eb4432bb6260eaadb41495149739244308e9e125.tar.lz
cuberite-eb4432bb6260eaadb41495149739244308e9e125.tar.xz
cuberite-eb4432bb6260eaadb41495149739244308e9e125.tar.zst
cuberite-eb4432bb6260eaadb41495149739244308e9e125.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol_1_10.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol_1_10.cpp b/src/Protocol/Protocol_1_10.cpp
index 16c1b3277..bc6b89635 100644
--- a/src/Protocol/Protocol_1_10.cpp
+++ b/src/Protocol/Protocol_1_10.cpp
@@ -321,8 +321,8 @@ void cProtocol_1_10_0::HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer)
{
cServer * Server = cRoot::Get()->GetServer();
AString ServerDescription = Server->GetDescription();
- int NumPlayers = Server->GetNumPlayers();
- int MaxPlayers = Server->GetMaxPlayers();
+ 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);