aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-16 13:27:44 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-16 13:27:44 +0200
commit6e8b4eba4d96fa71e5ed7263245ca9f19490d244 (patch)
treee6b8559466a126f0b536f17fcd38366e6432e658 /src/main/java/at/hannibal2/skyhanni/data
parentb90d16f0a377a900877f4eebba7fe0c371f92fc6 (diff)
downloadskyhanni-6e8b4eba4d96fa71e5ed7263245ca9f19490d244.tar.gz
skyhanni-6e8b4eba4d96fa71e5ed7263245ca9f19490d244.tar.bz2
skyhanni-6e8b4eba4d96fa71e5ed7263245ca9f19490d244.zip
Fixed SkyHanni gui edit button not working inside storage even if neu storage is not disabled.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt b/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt
index fa633eaa4..4f3110789 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt
@@ -22,6 +22,7 @@ class GuiEditManager {
@SubscribeEvent
fun onKeyClick(event: LorenzKeyPressEvent) {
if (!LorenzUtils.inSkyBlock) return
+ if (event.keyCode != SkyHanniMod.feature.gui.keyBindOpen) return
if (isInGui()) return
Minecraft.getMinecraft().currentScreen?.let {
@@ -31,7 +32,7 @@ class GuiEditManager {
if (NEUItems.neuHasFocus()) return
- if (event.keyCode == SkyHanniMod.feature.gui.keyBindOpen) openGuiPositionEditor()
+ openGuiPositionEditor()
}
@SubscribeEvent(priority = EventPriority.LOWEST)