Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Commit

Permalink
i wanna die this is taking sooo longg
Browse files Browse the repository at this point in the history
  • Loading branch information
HausemasterIssue authored Oct 1, 2021
1 parent 8dccdd1 commit 7d6df0c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ public class Criticals extends Module {

@EventHandler
private final Listener<PacketEvent.Send> 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();
Expand Down

0 comments on commit 7d6df0c

Please sign in to comment.