3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-26 16:12:42 +01:00

Fix type being byte instead of int

Dieser Commit ist enthalten in:
Myles 2018-12-05 19:13:26 +00:00
Ursprung 7e8e3fef61
Commit 7b880ae967

Datei anzeigen

@ -50,10 +50,10 @@ public class Chunk1_14Type extends PartialType<Chunk, ClientWorld> {
sections[i] = section; sections[i] = section;
} }
byte[] biomeData = groundUp ? new byte[256] : null; int[] biomeData = groundUp ? new int[256] : null;
if (groundUp) { if (groundUp) {
for (int i = 0; i < 256; i++) { for (int i = 0; i < 256; i++) {
biomeData[i] = (byte) input.readInt(); biomeData[i] = input.readInt();
} }
} }
@ -93,7 +93,7 @@ public class Chunk1_14Type extends PartialType<Chunk, ClientWorld> {
// Write biome data // Write biome data
if (chunk.isBiomeData()) { if (chunk.isBiomeData()) {
for (byte value : chunk.getBiomeData()) { for (int value : chunk.getBiomeData()) {
output.writeInt(value & 0xFF); // This is a temporary workaround, we'll look into fixing this soon :) output.writeInt(value & 0xFF); // This is a temporary workaround, we'll look into fixing this soon :)
} }
} }