diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-10 12:32:04 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-10 12:32:04 +0200 |
commit | 56012e2ed8ab72805799ebbfe0f57c93a67d9ceb (patch) | |
tree | 7173a7cae51f212657a8f760a75dce5998826d88 /src/main | |
parent | f5ed310c706280e246cb585d4f2fa4a05f2f1f42 (diff) | |
download | skyhanni-56012e2ed8ab72805799ebbfe0f57c93a67d9ceb.tar.gz skyhanni-56012e2ed8ab72805799ebbfe0f57c93a67d9ceb.tar.bz2 skyhanni-56012e2ed8ab72805799ebbfe0f57c93a67d9ceb.zip |
Fixed bug that chat peek hotkey works while inside skyhanni config
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/ChatPeek.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/ChatPeek.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/ChatPeek.kt index 795c56290..6d3dfdb8f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/ChatPeek.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/ChatPeek.kt @@ -2,6 +2,7 @@ package at.hannibal2.skyhanni.features.misc import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.utils.NEUItems +import io.github.moulberry.moulconfig.gui.GuiScreenElementWrapper import net.minecraft.client.Minecraft import net.minecraft.client.gui.inventory.GuiEditSign import org.lwjgl.input.Keyboard @@ -15,6 +16,7 @@ object ChatPeek { if (Minecraft.getMinecraft().thePlayer == null) return false if (key <= Keyboard.KEY_NONE) return false if (Minecraft.getMinecraft().currentScreen is GuiEditSign) return false + if (Minecraft.getMinecraft().currentScreen is GuiScreenElementWrapper) return false if (NEUItems.neuHasFocus()) return false |