summaryrefslogtreecommitdiffstats
path: root/src/Packet.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2020-07-28 00:57:34 +0200
committerGitHub <noreply@github.com>2020-07-28 00:57:34 +0200
commitc67da9e4eff2b99d095d5ff24de024b1ed115078 (patch)
tree56d53ca33dd54e492abfd56f093bda1f531bd4b4 /src/Packet.hpp
parentMerge pull request #43 from LaG1924/ftr/dimensions_support (diff)
parentImproved ChatComponent support #13 (diff)
downloadAltCraft-c67da9e4eff2b99d095d5ff24de024b1ed115078.tar
AltCraft-c67da9e4eff2b99d095d5ff24de024b1ed115078.tar.gz
AltCraft-c67da9e4eff2b99d095d5ff24de024b1ed115078.tar.bz2
AltCraft-c67da9e4eff2b99d095d5ff24de024b1ed115078.tar.lz
AltCraft-c67da9e4eff2b99d095d5ff24de024b1ed115078.tar.xz
AltCraft-c67da9e4eff2b99d095d5ff24de024b1ed115078.tar.zst
AltCraft-c67da9e4eff2b99d095d5ff24de024b1ed115078.zip
Diffstat (limited to 'src/Packet.hpp')
-rw-r--r--src/Packet.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Packet.hpp b/src/Packet.hpp
index 275de75..cca01ec 100644
--- a/src/Packet.hpp
+++ b/src/Packet.hpp
@@ -241,7 +241,7 @@ struct PacketDisconnectPlay : Packet {
}
void FromStream(StreamInput *stream) override {
- Reason = stream->ReadChat().text;
+ Reason = stream->ReadChat().ToPlainText();
}
int GetPacketId() override {
@@ -861,7 +861,7 @@ struct PacketOpenWindow : Packet {
void FromStream(StreamInput *stream) override {
WindowId = stream->ReadUByte();
WindowType = stream->ReadString();
- WindowTitle = stream->ReadChat().text;
+ WindowTitle = stream->ReadChat().ToPlainText();
NumberOfSlots = stream->ReadUByte();
if (WindowType == "EntityHorse")
@@ -1032,7 +1032,7 @@ struct PacketDisconnect : Packet {
}
void FromStream(StreamInput *stream) override {
- Reason = stream->ReadChat().text;
+ Reason = stream->ReadChat().ToPlainText();
}
int GetPacketId() override {