3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-25 15:50:10 +01:00

Merge pull request #1205 from creeper123123321/master

Fix 1.9 chunk missing blocks, update travis badge url
Dieser Commit ist enthalten in:
Myles 2019-03-02 20:08:50 +00:00 committet von GitHub
Commit 05d01e70b7
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
3 geänderte Dateien mit 3 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -1,5 +1,5 @@
# ViaVersion 1.6.0 - Spigot, Sponge, BungeeCord # ViaVersion 1.6.0 - Spigot, Sponge, BungeeCord
[![Build Status](https://travis-ci.org/MylesIsCool/ViaVersion.svg?branch=master)](https://travis-ci.org/MylesIsCool/ViaVersion) [![Build Status](https://travis-ci.com/ViaVersion/ViaVersion.svg?branch=master)](https://travis-ci.com/ViaVersion/ViaVersion)
[![Discord](https://img.shields.io/badge/chat-on%20discord-blue.svg)](https://viaversion.com/discord) [![Discord](https://img.shields.io/badge/chat-on%20discord-blue.svg)](https://viaversion.com/discord)
IRC: [#viaversion](http://irc.spi.gt/iris/?channels=viaversion) on irc.spi.gt for Support. IRC: [#viaversion](http://irc.spi.gt/iris/?channels=viaversion) on irc.spi.gt for Support.

Datei anzeigen

@ -30,8 +30,7 @@ public class ChunkSection {
public ChunkSection() { public ChunkSection() {
this.blocks = new int[SIZE]; this.blocks = new int[SIZE];
this.blockLight = new NibbleArray(SIZE); this.blockLight = new NibbleArray(SIZE);
palette.add(0); addPaletteEntry(0);
inversePalette.put(0, 0);
} }
/** /**

Datei anzeigen

@ -15,7 +15,7 @@ public class ChunkSectionType1_8 extends Type<ChunkSection> {
@Override @Override
public ChunkSection read(ByteBuf buffer) throws Exception { public ChunkSection read(ByteBuf buffer) throws Exception {
ChunkSection chunkSection = new ChunkSection(); ChunkSection chunkSection = new ChunkSection();
chunkSection.clearPalette(); // Don't clear palette because 0 index needs to be air in 1.9 version
ByteBuf littleEndianView = buffer.order(ByteOrder.LITTLE_ENDIAN); ByteBuf littleEndianView = buffer.order(ByteOrder.LITTLE_ENDIAN);