From 7418492ef14a532e04de76fdd4eb0a51180eb17b Mon Sep 17 00:00:00 2001 From: Matsv Date: Fri, 26 Aug 2016 16:37:22 +0200 Subject: [PATCH 1/6] Update the ISSUE_TEMPLATE to use /viaversion dump --- .github/ISSUE_TEMPLATE.md | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 50d13dd9..a99d277b 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,13 +1,4 @@ -### What version of ViaBackwards are you using? Type /ver ViaBackwards: - - -### What version of ViaVersion are you using? Type /ver ViaVersion: - - -### What version of Spigot are you using? Type /ver: - - -### What plugins are you using? Type /plugins: +### What is the output url of /viaversion dump? ### How/when does this error happen? login?: From fc993809d6412c0949283c3a1a83f9cae4ad2ce5 Mon Sep 17 00:00:00 2001 From: Matsv Date: Sat, 17 Sep 2016 11:32:35 +0200 Subject: [PATCH 2/6] Patch for LibsDisguises, they are sending too big chunks. :'( Fix #3 --- .../protocol1_9_4to1_10/chunks/Chunk1_10Type.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/nl/matsv/viabackwards/protocol/protocol1_9_4to1_10/chunks/Chunk1_10Type.java b/src/main/java/nl/matsv/viabackwards/protocol/protocol1_9_4to1_10/chunks/Chunk1_10Type.java index 84db3f83..243c1b55 100644 --- a/src/main/java/nl/matsv/viabackwards/protocol/protocol1_9_4to1_10/chunks/Chunk1_10Type.java +++ b/src/main/java/nl/matsv/viabackwards/protocol/protocol1_9_4to1_10/chunks/Chunk1_10Type.java @@ -22,6 +22,7 @@ import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import org.apache.commons.lang.IllegalClassException; import org.bukkit.World; +import us.myles.ViaVersion.api.ViaVersion; import us.myles.ViaVersion.api.minecraft.chunks.Chunk; import us.myles.ViaVersion.api.minecraft.chunks.ChunkSection; import us.myles.ViaVersion.api.type.PartialType; @@ -77,6 +78,14 @@ public class Chunk1_10Type extends PartialType { List nbtData = Arrays.asList(Type.NBT_ARRAY.read(input)); + // Temp patch for plugins that sent wrong too big chunks TODO find the issue in LibsDisguise and PR it. + if (input.readableBytes() > 0) { + byte[] array = new byte[input.readableBytes()]; + input.readBytes(array); + if (ViaVersion.getInstance().isDebug()) + System.out.println("Found " + array.length + " more bytes than expected while reading the chunk"); + } + return new Chunk1_10(chunkX, chunkZ, groundUp, primaryBitmask, sections, biomeData, nbtData); } From b8713db19c7605f335aa0c6f55c3d193a4eebd59 Mon Sep 17 00:00:00 2001 From: Matsv Date: Sat, 17 Sep 2016 11:36:25 +0200 Subject: [PATCH 3/6] Bump version to devbuild --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2ca29f17..4a465c45 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ nl.matsv viabackwards - 1.0.1 + 1.0.2-DEV From 953aead1e7c9d4166e3345c368220de8928ad951 Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 20 Sep 2016 22:09:25 +0100 Subject: [PATCH 4/6] Update plugin.yml --- src/main/resources/plugin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index e16bca99..d6b965f4 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,7 +1,7 @@ name: ViaBackwards version: ${project.version} main: nl.matsv.viabackwards.ViaBackwards -description: Allow +description: Allows 1.9.x on a 1.10 Spigot server authors: [Matsv] website: https://matsv.nl From fc666206158d26b4e27a01ec8d84bc520f15473c Mon Sep 17 00:00:00 2001 From: Mats Date: Wed, 28 Sep 2016 20:28:03 +0200 Subject: [PATCH 5/6] Cleanup README.md --- README.md | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 197a1d22..ffb2ce1b 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,7 @@ # ViaBackwards -Allows 1.9.x on a 1.10 Spigot server. -Requires [ViaVersion](http://viaversion.com) to be installed +Allows 1.9.x on a 1.10 Spigot server -TODO: -- [ ] Cleanup code -- [ ] Improve the rewriters -- [ ] Make it possible to send metadata with the rewriteEntityId -- [ ] Add support for sound names -- [ ] Create JavaDocs -- [ ] Improve the Entity tracker system to work good with multiple versions. -- [ ] Make it possible to choose your own replacement blocks \ No newline at end of file + +Requires [ViaVersion](http://viaversion.com) to be installed +**Spigot page:** https://www.spigotmc.org/resources/viabackwards.27448/ From a586c2c50ab5d46ada1b87224f13cc4db75826dc Mon Sep 17 00:00:00 2001 From: Mats Date: Thu, 29 Sep 2016 16:30:02 +0200 Subject: [PATCH 6/6] Update ISSUE_TEMPLATE.md --- .github/ISSUE_TEMPLATE.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index a99d277b..46da7cf9 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,8 +1,8 @@ ### What is the output url of /viaversion dump? - +> ### How/when does this error happen? login?: - +> ### Is there an error in the console? Use pastebin.com. Is there a kick message?: - +>