diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-20 19:50:31 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-20 19:50:31 +0100 |
commit | 5121bb988d881eba2ef145fd19c4fbc4a39d07b3 (patch) | |
tree | 67ccb5f21cac2493f5610000db8104662228ac53 /src/main/java/at/hannibal2 | |
parent | 40c90d9041a65753a1e6db8a3080b5f25201977c (diff) | |
download | skyhanni-5121bb988d881eba2ef145fd19c4fbc4a39d07b3.tar.gz skyhanni-5121bb988d881eba2ef145fd19c4fbc4a39d07b3.tar.bz2 skyhanni-5121bb988d881eba2ef145fd19c4fbc4a39d07b3.zip |
better screen close logic
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt | 1 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt | 1 |
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) } |