From c933878ea3f9c90df82683d431472ac93c1ff8e8 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sat, 1 Jul 2023 20:23:03 +0700 Subject: [PATCH] laziest fix ever --- .../chayapak/chomens_bot/plugins/CorePlugin.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java index bd840c3..4c28971 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java @@ -235,15 +235,7 @@ public class CorePlugin extends PositionPlugin.Listener { } public void packetReceived (ClientboundLevelChunkWithLightPacket packet) { - boolean hasCoreY = false; - for (BlockEntityInfo info : packet.getBlockEntities()) { - if (info.getY() >= fromSize.getY() && info.getY() <= toSize.getY()) { - hasCoreY = true; - break; - } - } - - if (hasCoreY) refill(); + refill(); // TODO: improve, this is probably the worst way to check } // ported from chomens bot js