aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-08-18 09:25:02 +0200
committerGitHub <noreply@github.com>2024-08-18 09:25:02 +0200
commitab6bb3f26b7c3c36754a3212c954b6b6733591f8 (patch)
treec416caca45f0017ba5f80d8ef4e7f50da339a46e
parent0e0af37e523d0ece489d789e20965bab7336903a (diff)
downloadskyhanni-ab6bb3f26b7c3c36754a3212c954b6b6733591f8.tar.gz
skyhanni-ab6bb3f26b7c3c36754a3212c954b6b6733591f8.tar.bz2
skyhanni-ab6bb3f26b7c3c36754a3212c954b6b6733591f8.zip
Fix: Renderable links in other mods (#2374)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt9
1 files changed, 8 insertions, 1 deletions
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")