From 1f51cf84162f3430e8f98790c2504d3b35187d2c Mon Sep 17 00:00:00 2001 From: Mats Date: Tue, 1 Mar 2016 16:51:13 +0100 Subject: [PATCH 1/2] Fix MalformedJsonException on opening renamed containers --- .../transformers/OutgoingTransformer.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/us/myles/ViaVersion/transformers/OutgoingTransformer.java b/src/main/java/us/myles/ViaVersion/transformers/OutgoingTransformer.java index 95d3dfc83..ee9c7d835 100644 --- a/src/main/java/us/myles/ViaVersion/transformers/OutgoingTransformer.java +++ b/src/main/java/us/myles/ViaVersion/transformers/OutgoingTransformer.java @@ -263,6 +263,20 @@ public class OutgoingTransformer { return; } + if (packet == PacketType.PLAY_OPEN_WINDOW){ + int windowId = input.readUnsignedByte(); + String type = readString(input); + String windowTitle = readString(input); + + if (windowTitle.startsWith("\"")) + windowTitle = "{\"text\":" + windowTitle + "}";; + + output.writeByte(windowId); + writeString(type,output); + writeString(windowTitle,output); + output.writeBytes(input); + return; + } if (packet == PacketType.PLAY_SPAWN_MOB) { int id = PacketUtil.readVarInt(input); PacketUtil.writeVarInt(id, output); From 5c0ba593da06513b53a2b424184db7a12a57166d Mon Sep 17 00:00:00 2001 From: Myles Date: Tue, 1 Mar 2016 14:40:53 +0000 Subject: [PATCH 2/2] Bump version to 0.3.3 --- README.md | 11 +++++++---- src/main/resources/plugin.yml | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f334a9a1f..1d23ee72c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ViaVersion 0.3.2 +# ViaVersion 0.3.3 **Allows the connection of 1.8 clients to 1.9** This plugin modifies netty to allow connection of 1.9 clients to 1.8, @@ -20,18 +20,21 @@ Some items with JSON data cause crashing due to the change in how strict minecra This took hours of work, so if you enjoy this consider looking into contacting me and supporting my projects. -Credits: +Sources: -------- **wiki.vg** (Protocol info, though I did have to find a lot myself) **MCProtocolLib** (used for chunk reading & some of writing.) +Contributors: +-------- + **Myself** (harhar) -**Matsv** (Movement Fix / Correcting my stupidity) +**Matsv/StatBoom** -**HugoDaBosss** (Sounds fix) +**HugoDaBosss** License: -------- diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index faa32b51f..4dcca77dc 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,4 +1,4 @@ name: ViaVersion main: us.myles.ViaVersion.Core author: _MylesC -version: 0.3.2 \ No newline at end of file +version: 0.3.3 \ No newline at end of file