3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-12-27 00:22:53 +01:00

Sync with master

Dieser Commit ist enthalten in:
Matsv 2016-10-03 15:28:25 +02:00
Commit debce2e8f7
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 97CEC2A2EA31350F
5 geänderte Dateien mit 20 neuen und 23 gelöschten Zeilen

Datei anzeigen

@ -1,17 +1,8 @@
### What version of ViaBackwards are you using? Type /ver ViaBackwards: ### What is the output url of /viaversion dump?
>
### 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:
### How/when does this error happen? login?: ### How/when does this error happen? login?:
>
### Is there an error in the console? Use pastebin.com. Is there a kick message?: ### Is there an error in the console? Use pastebin.com. Is there a kick message?:
>

Datei anzeigen

@ -1,13 +1,7 @@
# ViaBackwards # ViaBackwards
Allows 1.9.x on a 1.10 Spigot server. Allows 1.9.x on a 1.10 Spigot server
Requires [ViaVersion](http://viaversion.com) to be installed
TODO:
- [ ] Cleanup code Requires [ViaVersion](http://viaversion.com) to be installed
- [ ] Improve the rewriters **Spigot page:** https://www.spigotmc.org/resources/viabackwards.27448/
- [ ] 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

Datei anzeigen

@ -1,5 +1,7 @@
name: ViaBackwards name: ViaBackwards
version: ${project.version} version: ${project.version}
main: nl.matsv.viabackwards.ViaBackwards
description: Allows 1.9.x on a 1.10 Spigot server
main: nl.matsv.viabackwards.BukkitPlugin main: nl.matsv.viabackwards.BukkitPlugin
description: Allow description: Allow

Datei anzeigen

@ -76,6 +76,14 @@ public class Chunk1_10Type extends PartialType<Chunk, ClientWorld> {
List<CompoundTag> nbtData = Arrays.asList(Type.NBT_ARRAY.read(input)); 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); return new Chunk1_10(chunkX, chunkZ, groundUp, primaryBitmask, sections, biomeData, nbtData);
} }

Datei anzeigen

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