summaryrefslogtreecommitdiffstats
path: root/src/Protocol/ProtocolRecognizer.cpp
diff options
context:
space:
mode:
authormathiascode <mathiascode@users.noreply.github.com>2017-05-13 12:08:40 +0200
committerLukas Pioch <lukas@zgow.de>2017-05-16 21:17:33 +0200
commitb02886a9010950e1bb320598568b7f5adafdd3ca (patch)
treecf45e4172a01ae61c441f4b177431487aadb70bb /src/Protocol/ProtocolRecognizer.cpp
parentVarInt metadata written correctly for boats (#3709) (diff)
downloadcuberite-b02886a9010950e1bb320598568b7f5adafdd3ca.tar
cuberite-b02886a9010950e1bb320598568b7f5adafdd3ca.tar.gz
cuberite-b02886a9010950e1bb320598568b7f5adafdd3ca.tar.bz2
cuberite-b02886a9010950e1bb320598568b7f5adafdd3ca.tar.lz
cuberite-b02886a9010950e1bb320598568b7f5adafdd3ca.tar.xz
cuberite-b02886a9010950e1bb320598568b7f5adafdd3ca.tar.zst
cuberite-b02886a9010950e1bb320598568b7f5adafdd3ca.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/ProtocolRecognizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/ProtocolRecognizer.cpp b/src/Protocol/ProtocolRecognizer.cpp
index 79270644f..011070998 100644
--- a/src/Protocol/ProtocolRecognizer.cpp
+++ b/src/Protocol/ProtocolRecognizer.cpp
@@ -1157,7 +1157,7 @@ void cProtocolRecognizer::SendPingStatusResponse(void)
// Version:
Json::Value Version;
Version["name"] = "Cuberite " MCS_CLIENT_VERSIONS;
- Version["protocol"] = 0; // Force client to think this is an invalid version (no other good default)
+ Version["protocol"] = MCS_LATEST_PROTOCOL_VERSION;
// Players:
Json::Value Players;
@@ -1179,7 +1179,7 @@ void cProtocolRecognizer::SendPingStatusResponse(void)
ResponseValue["favicon"] = Printf("data:image/png;base64,%s", Favicon.c_str());
}
- Json::StyledWriter Writer;
+ Json::FastWriter Writer;
AString Response = Writer.write(ResponseValue);
cPacketizer Pkt(*this, 0x00); // Response packet