Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
❤️ just some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Tryflle committed Dec 20, 2023
1 parent 3f3dfde commit 7d8f720
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public void bop(RenderHandEvent e) {
}
}


public void randomizer() {
double random = Utils.Java.randomInt(0, 4);
shouldClick = random >= 0.5;
Expand All @@ -108,7 +107,5 @@ public void finishDelay() {
delaying = false;
shouldClick = false;
}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public Backtrack() {
this.registerSetting(spoofms = new SliderSetting("Ping in ms", 80.0, 30.0, 1000.0, 5.0));
}


@SubscribeEvent
public void onTickDisabler(TickEvent e) {
if (!PlayerUtils.isPlayerInGame()) this.disable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public class ClickAssist extends Module {
public Robot robot;
private int cps;


public ClickAssist() {
super("ClickAssist", ModuleCategory.Combat, 0);
this.registerSetting(new DescriptionSetting("Chance to double click."));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
@SuppressWarnings("unused")
public class Criticals extends Module {


public Criticals() {
super("Criticals", ModuleCategory.Combat, 0);
this.registerSetting(new DescriptionSetting("Packet criticals"));
Expand All @@ -21,7 +20,7 @@ public Criticals() {
@SubscribeEvent
public void owie(PacketEvent.Send e) {
if (!PlayerUtils.isPlayerInGame()) return;
if(mc.thePlayer.hurtTime <= 4 && mc.thePlayer.onGround && e.getPacket() instanceof C02PacketUseEntity) {
if (mc.thePlayer.hurtTime <= 4 && mc.thePlayer.onGround && e.getPacket() instanceof C02PacketUseEntity) {
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.07, mc.thePlayer.posZ, false));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ public boolean isConsumable() {
return noConsumables.isToggled() && (mc.thePlayer.getHeldItem().getItem() instanceof ItemFood || mc.thePlayer.getHeldItem().getItem() instanceof ItemPotion);
} else return false;
}

public boolean isRod() {
if (mc.thePlayer.getHeldItem() != null) {
return noRod.isToggled() && mc.thePlayer.getHeldItem().getItem() instanceof net.minecraft.item.ItemFishingRod;
} else return false;
}

public boolean isBow() {
if (mc.thePlayer.getHeldItem() != null) {
return noBow.isToggled() && mc.thePlayer.getHeldItem().getItem() instanceof net.minecraft.item.ItemBow;
Expand Down Expand Up @@ -73,7 +75,6 @@ public void bop(RenderHandEvent e) {
}
}


public void randomizer() {
double random = Utils.Java.randomInt(0, 2);
shouldClick = random >= 0.5;
Expand All @@ -90,4 +91,4 @@ public void finishDelay() {
delaying = false;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public WTap() {
this.registerSetting(delay = new DoubleSliderSetting("Delay", 50.0D, 100.0D, 0.0D, 300.0D, 5.0D));
}

int wkey = mc.gameSettings.keyBindForward.getKeyCode();
private final int wkey = mc.gameSettings.keyBindForward.getKeyCode();

public boolean isLookingAtPlayer() {
MovingObjectPosition result = mc.objectMouseOver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public class AntiVoid extends Module {
public final SliderSetting fallDist;
public static TickSetting AutoDisable;


public AntiVoid() {
super("AntiVoid", ModuleCategory.Movement, 0);
this.registerSetting(new DescriptionSetting("Prevents falling in the void."));
Expand Down Expand Up @@ -48,5 +47,4 @@ public void antiVoid(TickEvent e) {
public enum modes {
NCP, Karhu
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public class Bhop extends Module {
public ComboSetting<mode> SpeedMode;
public boolean incomingVelo = false;


public Bhop() {
super("Bhop", ModuleCategory.Movement, 0);
this.registerSetting(new DescriptionSetting("Bunny Hop"));
Expand All @@ -47,7 +46,6 @@ public void heck(PacketEvent.Receive e) {
incomingVelo = false;
}


@SubscribeEvent
public void Stupidity(TickEvent e) {
switch (SpeedMode.getMode()) {
Expand Down Expand Up @@ -93,5 +91,4 @@ public void Stupidity(TickEvent e) {
public enum mode {
Old, New
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
import dev.stormy.client.module.Module;
import net.weavemc.loader.api.event.TickEvent;

@SuppressWarnings("unused")
public class NoSlow extends Module {
public static SliderSetting speed;
public static TickSetting autosprint, noweapons, noconsumables;
public static ComboSetting<modes> mode;
public TimerUtils timer = new TimerUtils();
private TimerUtils timer = new TimerUtils();
int rmb = mc.gameSettings.keyBindUseItem.getKeyCode();
int sprint = mc.gameSettings.keyBindSprint.getKeyCode();
public boolean shouldFinishBlock = false;
Expand All @@ -45,6 +46,7 @@ public void onSlowdown(SlowdownEvent e) {
mc.thePlayer.movementInput.moveForward *= (100.0F - (float) speed.getInput()) / 100.0F;
mc.thePlayer.movementInput.moveStrafe *= (100.0F - (float) speed.getInput()) / 100.0F;
if (autosprint.isToggled() && mc.gameSettings.keyBindSprint.isKeyDown() && !mc.thePlayer.isSprinting() && PlayerUtils.isPlayerMoving()) {
shouldFinishBlock = false;
KeyBinding.setKeyBindState(rmb, false);
KeyBinding.onTick(rmb);
if (timer.hasReached(100 + Utils.Java.randomInt(-10, 10))) {
Expand All @@ -58,7 +60,6 @@ public void onSlowdown(SlowdownEvent e) {
@SubscribeEvent
public void reBlock(TickEvent e) {
if (mode.getMode() != modes.Regular && shouldFinishBlock && timer.hasReached(100 + Utils.Java.randomInt(-10, 10))) {
shouldFinishBlock = false;
KeyBinding.setKeyBindState(rmb, true);
KeyBinding.onTick(rmb);
timer.reset();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ public void onTick(TickEvent e) {
mc.timer.timerSpeed = 1.0f;
return;
}

mc.timer.timerSpeed = (float) speed.getInput();
} else {
mc.timer.timerSpeed = 1.0f;
}

}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,4 @@ public void packetHandler(RenderHandEvent e) {
exception.printStackTrace();
}
}

}

0 comments on commit 7d8f720

Please sign in to comment.