aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorObsidian <108832807+Obsidianninja11@users.noreply.github.com>2024-02-09 15:37:22 -0900
committerGitHub <noreply@github.com>2024-02-10 01:37:22 +0100
commitf3f63199d2fea8b8b2f63252ea5d4a0de02840b6 (patch)
tree8bddd28963e592f1f291534b1d0d2361d7bd5bf3 /src/main/java/at/hannibal2
parent8beaf4b7694892b80a5254780dbb4d0477af9186 (diff)
downloadskyhanni-f3f63199d2fea8b8b2f63252ea5d4a0de02840b6.tar.gz
skyhanni-f3f63199d2fea8b8b2f63252ea5d4a0de02840b6.tar.bz2
skyhanni-f3f63199d2fea8b8b2f63252ea5d4a0de02840b6.zip
Added option to hide the already existing F3 SkyBlock Area Debug Feature #858
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java7
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt2
2 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java
index 9b7db7584..9de854ba3 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java
@@ -98,7 +98,12 @@ public class DebugConfig {
public boolean eventCounter = false;
@Expose
- @ConfigOption(name = "Bypass Advanced Tab List", desc = "The Advaced Player Tab list is disabled whie pressing this hotkey.")
+ @ConfigOption(name = "Bypass Advanced Tab List", desc = "The Advanced Player Tab list is disabled whie pressing this hotkey.")
@ConfigEditorKeybind(defaultKey = Keyboard.KEY_NONE)
public int bypassAdvancedPlayerTabList = Keyboard.KEY_NONE;
+
+ @Expose
+ @ConfigOption(name = "SkyBlock Area", desc = "Show your current area in SkyBlock while f3 is open.")
+ @ConfigEditorBoolean
+ public boolean currentAreaDebug = true;
}
diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt
index ccb6b198e..c7a73afcc 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt
@@ -426,7 +426,7 @@ class SkyHanniDebugsAndTests {
@SubscribeEvent
fun onRenderLocation(event: GuiRenderEvent.GuiOverlayRenderEvent) {
- if (LorenzUtils.inSkyBlock && Minecraft.getMinecraft().gameSettings.showDebugInfo) {
+ if (LorenzUtils.inSkyBlock && Minecraft.getMinecraft().gameSettings.showDebugInfo && debugConfig.currentAreaDebug) {
config.debugLocationPos.renderString(
"Current Area: ${HypixelData.skyBlockArea}",
posLabel = "SkyBlock Area (Debug)"