aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-20 19:50:31 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-20 19:50:31 +0100
commit5121bb988d881eba2ef145fd19c4fbc4a39d07b3 (patch)
tree67ccb5f21cac2493f5610000db8104662228ac53 /src/main/java/at
parent40c90d9041a65753a1e6db8a3080b5f25201977c (diff)
downloadskyhanni-5121bb988d881eba2ef145fd19c4fbc4a39d07b3.tar.gz
skyhanni-5121bb988d881eba2ef145fd19c4fbc4a39d07b3.tar.bz2
skyhanni-5121bb988d881eba2ef145fd19c4fbc4a39d07b3.zip
better screen close logic
Diffstat (limited to 'src/main/java/at')
-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)
}