Sync with master

This commit is contained in:
Matsv 2016-10-03 15:28:25 +02:00
commit debce2e8f7
No known key found for this signature in database
GPG Key ID: 97CEC2A2EA31350F
5 changed files with 20 additions and 23 deletions

View File

@ -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?:
>

View File

@ -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
Requires [ViaVersion](http://viaversion.com) to be installed
**Spigot page:** https://www.spigotmc.org/resources/viabackwards.27448/

View File

@ -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

View File

@ -76,6 +76,14 @@ public class Chunk1_10Type extends PartialType<Chunk, ClientWorld> {
List<CompoundTag> 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);
}

View File

@ -23,6 +23,8 @@
<modelVersion>4.0.0</modelVersion>
<groupId>nl.matsv</groupId>
<artifactId>viabackwards</artifactId>
<version>1.0.2-DEV</version>
<artifactId>viabackwards-parent</artifactId>
<packaging>pom</packaging>
<version>1.0.1</version>