From 00e6bf7bacd68be9f68762e995c36a399b6d00e0 Mon Sep 17 00:00:00 2001 From: ManInMyVan Date: Wed, 21 Aug 2024 10:32:39 -0600 Subject: [PATCH] don't cancel release use items in badpacketsl --- .../java/ac/grim/grimac/checks/impl/badpackets/BadPacketsL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ac/grim/grimac/checks/impl/badpackets/BadPacketsL.java b/src/main/java/ac/grim/grimac/checks/impl/badpackets/BadPacketsL.java index a8f9f306e8..6cca3ee6d0 100644 --- a/src/main/java/ac/grim/grimac/checks/impl/badpackets/BadPacketsL.java +++ b/src/main/java/ac/grim/grimac/checks/impl/badpackets/BadPacketsL.java @@ -43,7 +43,7 @@ public void onPacketReceive(PacketReceiveEvent event) { + packet.getBlockPosition().getX() + ", " + packet.getBlockPosition().getY() + ", " + packet.getBlockPosition().getZ() + ", " + packet.getBlockFace() + ", sequence=" + packet.getSequence() + ", action=" + packet.getAction().toString().toLowerCase(Locale.ROOT).replace("_", " ") + " v" + player.getVersionName() - ) && shouldModifyPackets()) { + ) && shouldModifyPackets() && packet.getAction() != DiggingAction.RELEASE_USE_ITEM) { event.setCancelled(true); player.onPacketCancel(); }