From 7f264b320cf89b18a28a592dd5d79d6cd107c677 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 31 Jan 2024 20:36:42 +0100 Subject: Fixed gui positions moving into the bottom right corner when leaving the gui position editor while pressing mouse button on next reopen. --- .../hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt b/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt index 4e72a0fb4..88ec9e054 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt @@ -42,6 +42,9 @@ class GuiPositionEditor(private val positions: List, private val borde override fun onGuiClosed() { super.onGuiClosed() clickedPos = -1 + for (position in positions) { + position.clicked = false + } OtherInventoryData.close() } @@ -235,4 +238,4 @@ class GuiPositionEditor(private val positions: List, private val borde else hovered.scale += .1F } -} \ No newline at end of file +} -- cgit