From 2bd03ad92cff1e77f1a769c63419c9e8a0a40ef7 Mon Sep 17 00:00:00 2001 From: Myles Date: Wed, 17 May 2017 18:15:52 +0100 Subject: [PATCH] Fix chunks on 1.11 encoder --- .../protocols/protocol1_11to1_10/Protocol1_11To1_10.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_11to1_10/Protocol1_11To1_10.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_11to1_10/Protocol1_11To1_10.java index 9358f85b6..f25c865ff 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_11to1_10/Protocol1_11To1_10.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_11to1_10/Protocol1_11To1_10.java @@ -280,6 +280,9 @@ public class Protocol1_11To1_10 extends Protocol { Chunk1_9_3_4Type type = new Chunk1_9_3_4Type(clientWorld); Chunk chunk = wrapper.passthrough(type); + // Clear any other bytes (This is a workaround for a issue with 1.9.2 encoder adding nbt list) + wrapper.clearInputBuffer(); + if (chunk.getBlockEntities() == null) return; for (CompoundTag tag : chunk.getBlockEntities()) { if (tag.contains("id") &&