summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authorPeter Bell <peterbell10@live.co.uk>2020-05-24 16:15:47 +0200
committerpeterbell10 <peterbell10@live.co.uk>2020-05-29 14:46:11 +0200
commitce1d6a7ebd4b26c8aebe91611d5cbf17c7c8d658 (patch)
treeb043ee9095708596a13241a98d73364f92d79801 /src/Protocol
parentUpgrade to C++17 [CMake] (#4717) (diff)
downloadcuberite-ce1d6a7ebd4b26c8aebe91611d5cbf17c7c8d658.tar
cuberite-ce1d6a7ebd4b26c8aebe91611d5cbf17c7c8d658.tar.gz
cuberite-ce1d6a7ebd4b26c8aebe91611d5cbf17c7c8d658.tar.bz2
cuberite-ce1d6a7ebd4b26c8aebe91611d5cbf17c7c8d658.tar.lz
cuberite-ce1d6a7ebd4b26c8aebe91611d5cbf17c7c8d658.tar.xz
cuberite-ce1d6a7ebd4b26c8aebe91611d5cbf17c7c8d658.tar.zst
cuberite-ce1d6a7ebd4b26c8aebe91611d5cbf17c7c8d658.zip
Diffstat (limited to 'src/Protocol')
-rw-r--r--src/Protocol/Protocol_1_8.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol_1_8.cpp b/src/Protocol/Protocol_1_8.cpp
index f0d530eaf..a9fa8f23a 100644
--- a/src/Protocol/Protocol_1_8.cpp
+++ b/src/Protocol/Protocol_1_8.cpp
@@ -2742,7 +2742,7 @@ void cProtocol_1_8_0::HandlePacketUpdateSign(cByteBuffer & a_ByteBuffer)
for (int i = 0; i < 4; i++)
{
HANDLE_READ(a_ByteBuffer, ReadVarUTF8String, AString, Line);
- if (JsonUtils::ParseString(Line, root))
+ if (JsonUtils::ParseString(Line, root) && root.isString())
{
Lines[i] = root.asString();
}