diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-27 17:16:36 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-27 17:16:36 +0200 |
commit | 2ec3d23e323021eb912d9470562f21d77ddd8914 (patch) | |
tree | 065712d2654172ae6b966a1884965aa77d33d594 /src/main/java/at/hannibal2 | |
parent | 643694fc3374184e168cf590cdae95efa81d0d3f (diff) | |
download | skyhanni-2ec3d23e323021eb912d9470562f21d77ddd8914.tar.gz skyhanni-2ec3d23e323021eb912d9470562f21d77ddd8914.tar.bz2 skyhanni-2ec3d23e323021eb912d9470562f21d77ddd8914.zip |
Disabled clicks on SkyHanni GUIs while inside Skytils profile viewer.
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt | 9 |
1 files changed, 6 insertions, 3 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 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") |