Skip to content

Commit 98ebe2e

Browse files
committed
CRITICAL UPDATE
Anti-stuck: - Forcefully disabled for everyone, by default (you can enable it in the settings again) I'll fully fix it soon... to the Hypixel team: https://youtu.be/AAUh7DSNswc
1 parent 0a339fc commit 98ebe2e

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ baseGroup=com.jelly.farmhelperv2
44
mcVersion=1.8.9
55
modid=farmhelperv2
66
modName=FarmHelper
7-
version=2.8.11
7+
version=2.8.12
88
shouldRelease=true

src/main/java/com/jelly/farmhelperv2/config/FarmHelperConfig.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,11 @@ public class FarmHelperConfig extends Config {
333333
description = "Enables Picture-in-Picture mode, hold middle mouse while macroing to move the game window"
334334
)
335335
public static boolean pipMode = false;
336+
@Switch(
337+
name = "Anti Stuck Enabled (Disabled by default for now)", category = MISCELLANEOUS, subcategory = "Miscellaneous",
338+
description = "Enables the anti stuck feature"
339+
)
340+
public static boolean tmpAntiStuckEnabled = false;
336341
@Slider(
337342
name = "Anti Stuck Tries Until Rewarp", category = MISCELLANEOUS, subcategory = "Miscellaneous",
338343
description = "The number of tries until rewarp",

src/main/java/com/jelly/farmhelperv2/feature/impl/AntiStuck.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public boolean shouldStartAtMacroStart() {
8181

8282
@Override
8383
public void start() {
84-
if (enabled) return;
84+
if (enabled || !FarmHelperConfig.tmpAntiStuckEnabled) return;
8585
if (FailsafeManager.getInstance().getEmergencyQueue().contains(CobwebFailsafe.getInstance()) ||
8686
FailsafeManager.getInstance().getEmergencyQueue().contains(BadEffectsFailsafe.getInstance()))
8787
return;
@@ -121,7 +121,7 @@ public void resetStatesAfterMacroDisabled() {
121121

122122
@Override
123123
public boolean isToggled() {
124-
return true;
124+
return FarmHelperConfig.tmpAntiStuckEnabled;
125125
}
126126

127127
@Override
@@ -210,7 +210,7 @@ public void onTickUnstuck(TickEvent.ClientTickEvent event) {
210210
return;
211211
}
212212
if (mc.currentScreen != null) return;
213-
if (!enabled) return;
213+
if (!enabled || !FarmHelperConfig.tmpAntiStuckEnabled) return;
214214
if (FeatureManager.getInstance().isAnyOtherFeatureEnabled(this)) return;
215215

216216
if (delayBetweenMovementsClock.isScheduled() && !delayBetweenMovementsClock.passed()) return;

0 commit comments

Comments
 (0)