summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-19 22:16:29 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-19 22:16:29 +0200
commit3a9543178abb7500aff65e09f054c28200ca6cac (patch)
tree098503b8bce507fcffb87e9b4ed3e2cc44aa4d86 /src/Protocol/Protocol17x.cpp
parentAdded client translation to achievements (diff)
downloadcuberite-3a9543178abb7500aff65e09f054c28200ca6cac.tar
cuberite-3a9543178abb7500aff65e09f054c28200ca6cac.tar.gz
cuberite-3a9543178abb7500aff65e09f054c28200ca6cac.tar.bz2
cuberite-3a9543178abb7500aff65e09f054c28200ca6cac.tar.lz
cuberite-3a9543178abb7500aff65e09f054c28200ca6cac.tar.xz
cuberite-3a9543178abb7500aff65e09f054c28200ca6cac.tar.zst
cuberite-3a9543178abb7500aff65e09f054c28200ca6cac.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol17x.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index 3061d132b..7c526d103 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -234,7 +234,7 @@ void cProtocol172::SendChat(const cCompositeChat & a_Message)
// Compose the complete Json string to send:
Json::Value msg;
- msg["text"] = ""; // The client crashes without this
+ msg["text"] = cClientHandle::FormatMessageType(m_Client->GetPlayer()->GetWorld()->ShouldUseChatPrefixes(), a_Message.GetMessageType(), a_Message.GetAdditionalMessageTypeData()); // The client crashes without this field being present
const cCompositeChat::cParts & Parts = a_Message.GetParts();
for (cCompositeChat::cParts::const_iterator itr = Parts.begin(), end = Parts.end(); itr != end; ++itr)
{