From 24409a577186f4da88ecde487468416503198953 Mon Sep 17 00:00:00 2001 From: SergioK29 <176293682+SergioK29@users.noreply.github.com> Date: Tue, 3 Dec 2024 14:00:27 +0000 Subject: [PATCH] Fix missing shouldModifyPackets --- .../java/ac/grim/grimac/checks/impl/badpackets/BadPacketsH.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ac/grim/grimac/checks/impl/badpackets/BadPacketsH.java b/src/main/java/ac/grim/grimac/checks/impl/badpackets/BadPacketsH.java index bdae1e5f35..4012d7c4f5 100644 --- a/src/main/java/ac/grim/grimac/checks/impl/badpackets/BadPacketsH.java +++ b/src/main/java/ac/grim/grimac/checks/impl/badpackets/BadPacketsH.java @@ -43,7 +43,7 @@ public void onPacketReceive(PacketReceiveEvent event) { if (player.getClientVersion().isOlderThan(ClientVersion.V_1_9) && PacketEvents.getAPI().getServerManager().getVersion().isNewerThan(ServerVersion.V_1_8)) return; - if (!sentAnimation && flagAndAlert()) { + if (!sentAnimation && flagAndAlert() && shouldModifyPackets()) { event.setCancelled(true); player.onPacketCancel(); }