From 7d6df0cde62be226deb4c10d14e1abc6e5203288 Mon Sep 17 00:00:00 2001 From: HausemasterIssue <90464553+HausemasterIssue@users.noreply.github.com> Date: Fri, 1 Oct 2021 18:03:18 -0400 Subject: [PATCH] i wanna die this is taking sooo longg --- .../gamesense/client/module/modules/combat/Criticals.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gamesense/client/module/modules/combat/Criticals.java b/src/main/java/com/gamesense/client/module/modules/combat/Criticals.java index 90b6bf8c5..80abdce5c 100644 --- a/src/main/java/com/gamesense/client/module/modules/combat/Criticals.java +++ b/src/main/java/com/gamesense/client/module/modules/combat/Criticals.java @@ -32,8 +32,10 @@ public class Criticals extends Module { @EventHandler private final Listener listener = new Listener<>(event -> { - if (event.getPacket() instanceof CPacketUseEntity) { - if (((CPacketUseEntity) event.getPacket()).getAction() == CPacketUseEntity.Action.ATTACK && packet.getEntityFromWorld((World)this.mc.world) instanceof EntityLivingBase && mc.player.onGround) { + if (PacketEvent.getPacket() instanceof CPacketUseEntity) { + packet = (CPacketUseEntity)PacketEvent.getPacket(); + if (((CPacketUseEntity) PacketEvent.getPacket()).getAction() == CPacketUseEntity.Action.ATTACK && packet.getEntityFromWorld((World)this.mc.world) instanceof EntityLivingBase && + mc.player.onGround && !mc.player.isInLava() && !mc.player.isInWater()) { switch (critMode.getValue()) { case "Jump": { mc.player.jump();