Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ baseGroup=com.jelly.farmhelperv2
mcVersion=1.8.9
modid=farmhelperv2
modName=FarmHelper
version=2.9.6
version=2.9.6-pre1
shouldRelease=true
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.jelly.farmhelperv2.config;

import cc.polyfrost.oneconfig.config.Config;
import cc.polyfrost.oneconfig.config.annotations.Number;
import cc.polyfrost.oneconfig.config.annotations.*;
import cc.polyfrost.oneconfig.config.annotations.Number;
import cc.polyfrost.oneconfig.config.core.OneColor;
import cc.polyfrost.oneconfig.config.core.OneKeyBind;
import cc.polyfrost.oneconfig.config.data.*;
Expand Down Expand Up @@ -463,6 +463,14 @@ public class FarmHelperConfig extends Config {
description = "Switch to game window when failsafe triggers")
public static boolean autoAltTab = false;

@DualOption(
name = "Failsafe Action",
category = FAILSAFE, subcategory = "General",
description = "Decides what the macro should do upon macro check.",
left = "React", right = "Disable"
)
public static boolean failsafeAction = false;

@Slider(name = "Failsafe Stop Delay", category = FAILSAFE, subcategory = "General",
description = "Delay before stopping macro after failsafe (ms)",
min = 1000, max = 7500)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ public void onFailsafeTriggered(TickEvent.ClientTickEvent event) {
if (onTickDelay.isScheduled() && !onTickDelay.passed()) {
return;
}
triggeredFailsafe.get().duringFailsafeTrigger();

if (FarmHelperConfig.failsafeAction)
triggeredFailsafe.get().duringFailsafeTrigger();
}

@SubscribeEvent
Expand Down