diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-27 17:04:04 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-27 17:04:04 +0200 |
commit | 643694fc3374184e168cf590cdae95efa81d0d3f (patch) | |
tree | 6d4a8259a34969265ed227079f9bca83cd1b5cf7 /src/main/java/at | |
parent | f050b3ed001106720c6d270b71106421f3113f7e (diff) | |
download | skyhanni-643694fc3374184e168cf590cdae95efa81d0d3f.tar.gz skyhanni-643694fc3374184e168cf590cdae95efa81d0d3f.tar.bz2 skyhanni-643694fc3374184e168cf590cdae95efa81d0d3f.zip |
Disabled clicks on SkyHanni GUIs while inside NEU's profile viewer.
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt | 9 |
1 files changed, 7 insertions, 2 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 8884e5452..67d77050a 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt @@ -168,7 +168,11 @@ interface Renderable { ToolTipData.lastSlot == null } else true val isConfigScreen = Minecraft.getMinecraft().currentScreen !is GuiScreenElementWrapper - val result = isGuiScreen && isGuiPositionEditor && isNotInSignAndOnSlot && isConfigScreen + + val openGui = Minecraft.getMinecraft().currentScreen?.javaClass?.name ?: "none" + val isInNeuPV = openGui == "io.github.moulberry.notenoughupdates.profileviewer.GuiProfileViewer" + + val result = isGuiScreen && isGuiPositionEditor && isNotInSignAndOnSlot && isConfigScreen && !isInNeuPV if (debug) { if (!result) { @@ -178,6 +182,7 @@ interface Renderable { if (!isGuiPositionEditor) logger.log("isGuiPositionEditor") if (!isNotInSignAndOnSlot) logger.log("isNotInSignAndOnSlot") if (!isConfigScreen) logger.log("isConfigScreen") + if (isInNeuPV) logger.log("isInNeuPV") logger.log("") } else { logger.log("allowed click") @@ -254,4 +259,4 @@ interface Renderable { } } } -}
\ No newline at end of file +} |