diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-11 23:17:27 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-11 23:17:27 +0200 |
commit | c7044fa1dd77a04c57780443a5dc88165c2d2ca1 (patch) | |
tree | cece37f27c6b32f4c5669a3467d8f0af17f75ac4 /src/Protocol/Protocol18x.cpp | |
parent | Removed GetProtocolVersion() from the protocols. (diff) | |
download | cuberite-c7044fa1dd77a04c57780443a5dc88165c2d2ca1.tar cuberite-c7044fa1dd77a04c57780443a5dc88165c2d2ca1.tar.gz cuberite-c7044fa1dd77a04c57780443a5dc88165c2d2ca1.tar.bz2 cuberite-c7044fa1dd77a04c57780443a5dc88165c2d2ca1.tar.lz cuberite-c7044fa1dd77a04c57780443a5dc88165c2d2ca1.tar.xz cuberite-c7044fa1dd77a04c57780443a5dc88165c2d2ca1.tar.zst cuberite-c7044fa1dd77a04c57780443a5dc88165c2d2ca1.zip |
Diffstat (limited to 'src/Protocol/Protocol18x.cpp')
-rw-r--r-- | src/Protocol/Protocol18x.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp index 142cae6a5..04af848dc 100644 --- a/src/Protocol/Protocol18x.cpp +++ b/src/Protocol/Protocol18x.cpp @@ -1515,10 +1515,9 @@ void cProtocol180::SendWindowOpen(const cWindow & a_Window) cPacketizer Pkt(*this, 0x2d); Pkt.WriteChar(a_Window.GetWindowID()); - Pkt.WriteChar(a_Window.GetWindowType()); - Pkt.WriteString(a_Window.GetWindowTitle()); + Pkt.WriteString(a_Window.GetWindowTypeName()); + Pkt.WriteString(Printf("{\"text\":\"%s\"}", a_Window.GetWindowTitle().c_str())); Pkt.WriteChar(a_Window.GetNumNonInventorySlots()); - Pkt.WriteBool(true); if (a_Window.GetWindowType() == cWindow::wtAnimalChest) { Pkt.WriteInt(0); // TODO: The animal's EntityID |