summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_14.cpp
diff options
context:
space:
mode:
authorSeppe Degryse <80254822+Griezn@users.noreply.github.com>2023-06-08 08:13:08 +0200
committerGitHub <noreply@github.com>2023-06-08 08:13:08 +0200
commit4fe144de352434ff6e98a4269777b82e8b03f4d0 (patch)
tree6278545a5b10369c1175a058414dc13cb21f500c /src/Protocol/Protocol_1_14.cpp
parentUpdate clang-tidy.sh (#5477) (diff)
downloadcuberite-4fe144de352434ff6e98a4269777b82e8b03f4d0.tar
cuberite-4fe144de352434ff6e98a4269777b82e8b03f4d0.tar.gz
cuberite-4fe144de352434ff6e98a4269777b82e8b03f4d0.tar.bz2
cuberite-4fe144de352434ff6e98a4269777b82e8b03f4d0.tar.lz
cuberite-4fe144de352434ff6e98a4269777b82e8b03f4d0.tar.xz
cuberite-4fe144de352434ff6e98a4269777b82e8b03f4d0.tar.zst
cuberite-4fe144de352434ff6e98a4269777b82e8b03f4d0.zip
Diffstat (limited to 'src/Protocol/Protocol_1_14.cpp')
-rw-r--r--src/Protocol/Protocol_1_14.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Protocol/Protocol_1_14.cpp b/src/Protocol/Protocol_1_14.cpp
index 09ae54cce..31393120e 100644
--- a/src/Protocol/Protocol_1_14.cpp
+++ b/src/Protocol/Protocol_1_14.cpp
@@ -9,6 +9,7 @@ Implements the 1.14 protocol classes:
#include "Globals.h"
#include "Protocol_1_14.h"
#include "Packetizer.h"
+#include "JsonUtils.h"
#include "../Root.h"
#include "../Server.h"
#include "../World.h"
@@ -440,7 +441,7 @@ void cProtocol_1_14::SendWindowOpen(const cWindow & a_Window)
}
}
- Pkt.WriteString(fmt::format(FMT_STRING("{{\"text\":\"{}\"}}"), a_Window.GetWindowTitle()));
+ Pkt.WriteString(JsonUtils::SerializeSingleValueJsonObject("text", a_Window.GetWindowTitle()));
}
}