From ab6bb3f26b7c3c36754a3212c954b6b6733591f8 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Sun, 18 Aug 2024 09:25:02 +0200 Subject: Fix: Renderable links in other mods (#2374) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt index 74efcc316..7a6fbce4b 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt @@ -252,6 +252,9 @@ interface Renderable { val isInNeuPv = openGui == "io.github.moulberry.notenoughupdates.profileviewer.GuiProfileViewer" val neuFocus = NEUItems.neuHasFocus() val isInSkytilsPv = openGui == "gg.skytils.skytilsmod.gui.profile.ProfileGui" + val isInSkytilsSettings = + openGui.let { it.startsWith("gg.skytils.vigilance.gui.") || it.startsWith("gg.skytils.skytilsmod.gui.") } + val isInNeuSettings = openGui.startsWith("io.github.moulberry.notenoughupdates.") val result = isGuiScreen && isGuiPositionEditor && @@ -260,7 +263,9 @@ interface Renderable { isConfigScreen && !isInNeuPv && !isInSkytilsPv && - !neuFocus + !neuFocus && + !isInSkytilsSettings && + !isInNeuSettings if (debug) { if (!result) { @@ -274,6 +279,8 @@ interface Renderable { if (isInNeuPv) logger.log("isInNeuPv") if (neuFocus) logger.log("neuFocus") if (isInSkytilsPv) logger.log("isInSkytilsPv") + if (isInSkytilsSettings) logger.log("isInSkytilsSettings") + if (isInNeuSettings) logger.log("isInNeuSettings") logger.log("") } else { logger.log("allowed click") -- cgit