aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-23 00:58:10 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-23 00:58:10 +0200
commit05b3c973b082ed09ee4ae1d8300c7e280f103da3 (patch)
tree4d3a3ece790d05c5fbb644699a17a558ba5c6b55 /src/main/java
parent801d8bc804e6a959911cbec63a9b32631e63f8ee (diff)
downloadskyhanni-05b3c973b082ed09ee4ae1d8300c7e280f103da3.tar.gz
skyhanni-05b3c973b082ed09ee4ae1d8300c7e280f103da3.tar.bz2
skyhanni-05b3c973b082ed09ee4ae1d8300c7e280f103da3.zip
Clickable gui elements no longer work while inside the skyhanni config
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt4
1 files changed, 3 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 3b5c1bfb0..a4e6b4347 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt
@@ -3,6 +3,7 @@ package at.hannibal2.skyhanni.utils.renderables
import at.hannibal2.skyhanni.config.core.config.gui.GuiPositionEditor
import at.hannibal2.skyhanni.data.ToolTipData
import at.hannibal2.skyhanni.utils.NEUItems.renderOnScreen
+import io.github.moulberry.moulconfig.gui.GuiScreenElementWrapper
import io.github.moulberry.notenoughupdates.util.Utils
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.Gui
@@ -67,7 +68,8 @@ interface Renderable {
val c = if (Minecraft.getMinecraft().currentScreen !is GuiEditSign) {
ToolTipData.lastSlot == null
} else true
- return a && b && c
+ val d = Minecraft.getMinecraft().currentScreen !is GuiScreenElementWrapper
+ return a && b && c && d
}
fun underlined(renderable: Renderable) = object : Renderable {