From e71c34255b2629cb6dceb21107b51d44458184da Mon Sep 17 00:00:00 2001 From: KennyTV Date: Wed, 16 Jun 2021 13:51:04 +0200 Subject: [PATCH] Bandaid fix tile entity error --- .../protocol1_12_2to1_13/packets/BlockItemPackets1_13.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_12_2to1_13/packets/BlockItemPackets1_13.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_12_2to1_13/packets/BlockItemPackets1_13.java index a79856af..54e9cdcb 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_12_2to1_13/packets/BlockItemPackets1_13.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_12_2to1_13/packets/BlockItemPackets1_13.java @@ -302,6 +302,11 @@ public class BlockItemPackets1_13 extends com.viaversion.viabackwards.api.rewrit if (!provider.isHandled(id)) continue; int sectionIndex = ((NumberTag) tag.get("y")).asInt() >> 4; + if (sectionIndex < 0) { + // 1.17 chunks + continue; + } + ChunkSection section = chunk.getSections()[sectionIndex]; int x = ((NumberTag) tag.get("x")).asInt();