Fix chunks on 1.11 encoder

This commit is contained in:
Myles 2017-05-17 18:15:52 +01:00
parent 3b1341f2b3
commit 2bd03ad92c

View File

@ -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") &&