Skip to content

Commit

Permalink
Fix AutoLog toggle off setting
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTas authored and Wide-Cat committed Nov 7, 2024
1 parent d4b3fb8 commit 60e85aa
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,14 @@ private void onTick(TickEvent.Post event) {
if (smartToggle.get()) {
if (isActive()) this.toggle();
enableHealthListener();
return;
}
} else if (toggleOff.get()) this.toggle();
return;
}

if (smart.get() && playerHealth + mc.player.getAbsorptionAmount() - PlayerUtils.possibleHealthReductions() < health.get()) {
disconnect("Health was going to be lower than " + health.get() + ".");
if (toggleOff.get()) this.toggle();
return;
}

if (!onlyTrusted.get() && !instantDeath.get() && entities.get().isEmpty())
Expand Down

0 comments on commit 60e85aa

Please sign in to comment.