Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Update AutoBuy.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Pan4ur authored Jan 24, 2024
1 parent d912544 commit 02b6a98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/thunder/hack/modules/client/AutoBuy.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public AutoBuy() {
public final Setting<String> an = new Setting<>("An", "an235");
public final Setting<Integer> minDelay = new Setting<>("MinUpdateDelay", 400, 50, 1000);
public final Setting<Integer> maxDelay = new Setting<>("MaxUpdateDelay", 550, 100, 3000);
public final Setting<Integer> buyDelay = new Setting<>("BuyDelay", 600, 0, 3000);

private final Timer updateTimer = new Timer();
private final Timer reAhTimer = new Timer();
Expand Down Expand Up @@ -153,7 +154,7 @@ public void onRender3D(MatrixStack stack) {
} else if(mc.currentScreen.getTitle().getString().contains("Подозрительная цена")) {
new Thread(() -> {
active = false;
try {Thread.sleep((long) (800 + MathUtility.random(0, 50)));} catch (Exception ignored) {}
try {Thread.sleep((long) (buyDelay.getValue() + MathUtility.random(0, 50)));} catch (Exception ignored) {}
Buy(1);
try {Thread.sleep(500);} catch (Exception ignored) {}
active = true;
Expand Down

0 comments on commit 02b6a98

Please sign in to comment.