Skip to content

Commit

Permalink
Fix sliders saying "1 ticks" instead of "1 tick"
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Nov 15, 2023
1 parent 8bcf80d commit ec542b0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/main/java/net/wurstclient/hacks/AutoFishHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ public final class AutoFishHack extends Hack

private final SliderSetting catchDelay = new SliderSetting("Catch delay",
"How long AutoFish will wait after a bite before reeling in.", 0, 0, 60,
1, ValueDisplay.INTEGER.withSuffix(" ticks"));
1, ValueDisplay.INTEGER.withSuffix(" ticks").withLabel(1, "1 tick"));

private final SliderSetting retryDelay = new SliderSetting("Retry delay",
"If casting or reeling in the fishing rod fails, this is how long"
+ " AutoFish will wait before trying again.",
15, 0, 100, 1, ValueDisplay.INTEGER.withSuffix(" ticks"));
15, 0, 100, 1,
ValueDisplay.INTEGER.withSuffix(" ticks").withLabel(1, "1 tick"));

private final SliderSetting patience = new SliderSetting("Patience",
"How long AutoFish will wait if it doesn't get a bite before reeling in.",
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/net/wurstclient/hacks/AutoSwordHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public final class AutoSwordHack extends Hack implements UpdateListener
private final SliderSetting releaseTime = new SliderSetting("Release time",
"Time until AutoSword will switch back from the weapon to the previously selected slot.\n\n"
+ "Only works when \u00a7lSwitch back\u00a7r is checked.",
10, 1, 200, 1, ValueDisplay.INTEGER.withSuffix(" ticks"));
10, 1, 200, 1,
ValueDisplay.INTEGER.withSuffix(" ticks").withLabel(1, "1 tick"));

private int oldSlot;
private int timer;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/wurstclient/hacks/CreativeFlightHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public final class CreativeFlightHack extends Hack implements UpdateListener
new SliderSetting("Anti-Kick Interval",
"How often Anti-Kick should prevent you from getting kicked.\n"
+ "Most servers will kick you after 80 ticks.",
30, 5, 80, 1,
SliderSetting.ValueDisplay.INTEGER.withSuffix(" ticks"));
30, 5, 80, 1, SliderSetting.ValueDisplay.INTEGER
.withSuffix(" ticks").withLabel(1, "1 tick"));

private final SliderSetting antiKickDistance = new SliderSetting(
"Anti-Kick Distance",
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/net/wurstclient/hacks/FlightHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public final class FlightHack extends Hack
new SliderSetting("Anti-Kick Interval",
"How often Anti-Kick should prevent you from getting kicked.\n"
+ "Most servers will kick you after 80 ticks.",
30, 5, 80, 1, ValueDisplay.INTEGER.withSuffix(" ticks"));
30, 5, 80, 1,
ValueDisplay.INTEGER.withSuffix(" ticks").withLabel(1, "1 tick"));

private final SliderSetting antiKickDistance = new SliderSetting(
"Anti-Kick Distance",
Expand Down

0 comments on commit ec542b0

Please sign in to comment.