From 2ec3d23e323021eb912d9470562f21d77ddd8914 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 27 Oct 2023 17:16:36 +0200 Subject: Disabled clicks on SkyHanni GUIs while inside Skytils profile viewer. --- .../java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (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 67d77050a..2a3321abc 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt @@ -170,9 +170,11 @@ interface Renderable { val isConfigScreen = Minecraft.getMinecraft().currentScreen !is GuiScreenElementWrapper val openGui = Minecraft.getMinecraft().currentScreen?.javaClass?.name ?: "none" - val isInNeuPV = openGui == "io.github.moulberry.notenoughupdates.profileviewer.GuiProfileViewer" + val isInNeuPv = openGui == "io.github.moulberry.notenoughupdates.profileviewer.GuiProfileViewer" + val isInSkyTilsPv = openGui == "gg.skytils.skytilsmod.gui.profile.ProfileGui" - val result = isGuiScreen && isGuiPositionEditor && isNotInSignAndOnSlot && isConfigScreen && !isInNeuPV + val result = isGuiScreen && isGuiPositionEditor && isNotInSignAndOnSlot && isConfigScreen && + !isInNeuPv && !isInSkyTilsPv if (debug) { if (!result) { @@ -182,7 +184,8 @@ interface Renderable { if (!isGuiPositionEditor) logger.log("isGuiPositionEditor") if (!isNotInSignAndOnSlot) logger.log("isNotInSignAndOnSlot") if (!isConfigScreen) logger.log("isConfigScreen") - if (isInNeuPV) logger.log("isInNeuPV") + if (isInNeuPv) logger.log("isInNeuPv") + if (isInSkyTilsPv) logger.log("isInSkyTilsPv") logger.log("") } else { logger.log("allowed click") -- cgit