diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_15to1_14_4/types/Chunk1_15Type.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_15to1_14_4/types/Chunk1_15Type.java index 780459f55..afeccc382 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_15to1_14_4/types/Chunk1_15Type.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_15to1_14_4/types/Chunk1_15Type.java @@ -31,6 +31,16 @@ public class Chunk1_15Type extends PartialType { boolean groundUp = input.readBoolean(); int primaryBitmask = Type.VAR_INT.read(input); CompoundTag heightMap = Type.NBT.read(input); + + int[] biomeData = groundUp ? new int[256] : null; + if (groundUp) { + //TODO Why 1024 ints? + for (int i = 0; i < 1024; i++) { + //biomeData[i] = input.readInt(); + input.readInt(); + } + } + Type.VAR_INT.read(input); BitSet usedSections = new BitSet(16); @@ -42,15 +52,6 @@ public class Chunk1_15Type extends PartialType { } } - int[] biomeData = groundUp ? new int[256] : null; - if (groundUp) { - //TODO Why 1024 ints? - for (int i = 0; i < 1024; i++) { - //biomeData[i] = input.readInt(); - input.readInt(); - } - } - // Read sections for (int i = 0; i < 16; i++) { if (!usedSections.get(i)) continue; // Section not set