diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 50d13dd9..46da7cf9 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,17 +1,8 @@ -### 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?: - +> ### Is there an error in the console? Use pastebin.com. Is there a kick message?: - +> 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/ diff --git a/bukkit/src/main/resources/plugin.yml b/bukkit/src/main/resources/plugin.yml index f5034adc..f54ab398 100644 --- a/bukkit/src/main/resources/plugin.yml +++ b/bukkit/src/main/resources/plugin.yml @@ -1,5 +1,7 @@ name: ViaBackwards version: ${project.version} +main: nl.matsv.viabackwards.ViaBackwards +description: Allows 1.9.x on a 1.10 Spigot server main: nl.matsv.viabackwards.BukkitPlugin description: Allow diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_9_4to1_10/chunks/Chunk1_10Type.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_9_4to1_10/chunks/Chunk1_10Type.java index f8af2e26..b48d5249 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_9_4to1_10/chunks/Chunk1_10Type.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_9_4to1_10/chunks/Chunk1_10Type.java @@ -76,6 +76,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); } diff --git a/pom.xml b/pom.xml index 1a776d69..1190518a 100644 --- a/pom.xml +++ b/pom.xml @@ -23,6 +23,8 @@ 4.0.0 nl.matsv + viabackwards + 1.0.2-DEV viabackwards-parent pom 1.0.1