diff --git a/README.md b/README.md index c295be40c..72438141b 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,15 @@ -# ViaVersion +# ViaVersion 0.2 **Allows the connection of 1.8 clients to 1.9** This plugin modifies netty to allow connection of 1.9 clients to 1.8, **Don't use late bind** -**As of this point it is not finished, I need to fix:** - -Entity Movement Sync (Teleporting) +**As of this point it doesn't have everything, I need to fix:** Attempt to make boats nicer when they don't work -Use reflection more. +Remap spawn eggs @@ -27,6 +25,8 @@ Credits: **Myself** (harhar) +**Matsv** (Movement Fix) + License: -------- diff --git a/src/main/java/us/myles/ViaVersion/transformers/IncomingTransformer.java b/src/main/java/us/myles/ViaVersion/transformers/IncomingTransformer.java index dc90d56ba..7cfb5836a 100644 --- a/src/main/java/us/myles/ViaVersion/transformers/IncomingTransformer.java +++ b/src/main/java/us/myles/ViaVersion/transformers/IncomingTransformer.java @@ -66,6 +66,16 @@ public class IncomingTransformer { } return; } + if (packet == PacketType.PLAY_UPDATE_SIGN_REQUEST) { + Long location = input.readLong(); + output.writeLong(location); + for (int i = 0; i < 4; i++) { + String line = PacketUtil.readString(input); + line = "{\"text\":\"" + line + "\"}"; + PacketUtil.writeString(line, output); + } + return; + } if (packet == PacketType.PLAY_TAB_COMPLETE_REQUEST) { String text = PacketUtil.readString(input); PacketUtil.writeString(text, output); diff --git a/src/main/java/us/myles/ViaVersion/transformers/OutgoingTransformer.java b/src/main/java/us/myles/ViaVersion/transformers/OutgoingTransformer.java index 0da911fa3..c21da2b49 100644 --- a/src/main/java/us/myles/ViaVersion/transformers/OutgoingTransformer.java +++ b/src/main/java/us/myles/ViaVersion/transformers/OutgoingTransformer.java @@ -270,6 +270,17 @@ public class OutgoingTransformer { } return; } + if(packet == PacketType.PLAY_UPDATE_SIGN){ + Long location = input.readLong(); + output.writeLong(location); + for(int i = 0;i<4;i++){ + String line = PacketUtil.readString(input); + if(line.startsWith("\"")){ + line = "{\"text\":" + line + "}"; + } + PacketUtil.writeString(line, output); + } + } if (packet == PacketType.PLAY_SPAWN_PLAYER) { int id = PacketUtil.readVarInt(input); PacketUtil.writeVarInt(id, output); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index afaeb2073..2eca2012b 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.1 \ No newline at end of file +version: 0.2 \ No newline at end of file