From 12926980e27f9f6558fac80d78326a38a5e659cc Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Fri, 18 Mar 2022 10:32:34 +0100 Subject: [PATCH] Also remove block entities above 255 in chunk data for 1.17->1.16 --- .../protocol1_16_4to1_17/packets/BlockItemPackets1_17.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_16_4to1_17/packets/BlockItemPackets1_17.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_16_4to1_17/packets/BlockItemPackets1_17.java index 5122bb66..5933602d 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_16_4to1_17/packets/BlockItemPackets1_17.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_16_4to1_17/packets/BlockItemPackets1_17.java @@ -309,7 +309,7 @@ public final class BlockItemPackets1_17 extends ItemRewriter { NumberTag tag = compound.get("y"); - return tag != null && tag.asInt() < 0; + return tag != null && (tag.asInt() < 0 || tag.asInt() > 255); }); }); }