aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt1
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt
index 085b6fcd8..2d0b2e24a 100644
--- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt
+++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt
@@ -676,6 +676,7 @@ class SkyHanniMod {
if (screenToOpen != null) {
screenTicks++
if (screenTicks == 5) {
+ Minecraft.getMinecraft().thePlayer.closeScreen()
Minecraft.getMinecraft().displayGuiScreen(screenToOpen)
screenTicks = 0
screenToOpen = null
diff --git a/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt b/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt
index 7477d74bb..3af97e0f9 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt
@@ -41,7 +41,6 @@ class GuiEditManager {
if (NEUItems.neuHasFocus()) return
lastHotkeyPressed = SimpleTimeMark.now()
- Minecraft.getMinecraft().thePlayer.closeScreen()
openGuiPositionEditor(hotkeyReminder = false)
}