aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt9
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
+}