Skip to content

Commit

Permalink
Update AutoWalkHig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCarlos26 committed Apr 12, 2024
1 parent 7c641e7 commit e2b5b3a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,23 @@ public void onDeactivate() {
private void onTick(TickEvent.Pre event) {
if (pauseOnLag.get()) {
if (TickRate.INSTANCE.getTimeSinceLastTick() > 1.4f) {
if (!sentLagMessage) error("Server isn't responding, pausing.");
if (!sentLagMessage) {
error("Server isn't responding, pausing.");
}
sentLagMessage = true;
unpress();
return;
}

if (sentLagMessage) {
if (TickRate.INSTANCE.getTickRate() > resumeTPS.get()) {
setPressed(mc.options.forwardKey, true);
sentLagMessage = false;
} else return;
}
}

setPressed(mc.options.forwardKey, true);

if (pickToggle.get()) {
FindItemResult pickaxe = InvUtils.find(itemStack -> itemStack.getItem() == Items.DIAMOND_PICKAXE || itemStack.getItem() == Items.NETHERITE_PICKAXE);
if (!pickaxe.found()) {
Expand Down

0 comments on commit e2b5b3a

Please sign in to comment.