From f3f63199d2fea8b8b2f63252ea5d4a0de02840b6 Mon Sep 17 00:00:00 2001 From: Obsidian <108832807+Obsidianninja11@users.noreply.github.com> Date: Fri, 9 Feb 2024 15:37:22 -0900 Subject: Added option to hide the already existing F3 SkyBlock Area Debug Feature #858 --- .../at/hannibal2/skyhanni/config/features/dev/DebugConfig.java | 7 ++++++- src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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)" -- cgit