From ba7817170b72ffdf9b7a98c8b1364a94b838df93 Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Fri, 7 Dec 2018 19:10:40 -0200 Subject: [PATCH] Fix chunk writing --- .../protocol1_9_1_2to1_9_3_4/types/Chunk1_9_3_4Type.java | 2 +- .../protocols/protocol1_9to1_8/types/Chunk1_9to1_8Type.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_1_2to1_9_3_4/types/Chunk1_9_3_4Type.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_1_2to1_9_3_4/types/Chunk1_9_3_4Type.java index d40bf219a..f0ea88144 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_1_2to1_9_3_4/types/Chunk1_9_3_4Type.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_1_2to1_9_3_4/types/Chunk1_9_3_4Type.java @@ -100,7 +100,7 @@ public class Chunk1_9_3_4Type extends PartialType { // Write biome data if (chunk.isBiomeData()) { for (int biome : chunk.getBiomeData()) { - buf.writeByte((byte) biome); + output.writeByte((byte) biome); } } diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/types/Chunk1_9to1_8Type.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/types/Chunk1_9to1_8Type.java index 70323c78a..86f8ef97f 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/types/Chunk1_9to1_8Type.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/types/Chunk1_9to1_8Type.java @@ -159,7 +159,7 @@ public class Chunk1_9to1_8Type extends PartialType { // Write biome data if (chunk.hasBiomeData()) { for (int biome : chunk.getBiomeData()) { - buf.writeByte((byte) biome); + output.writeByte((byte) biome); } } }