aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/features
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-01-12 14:36:06 +0100
committerLinnea Gräf <nea@nea.moe>2025-01-12 14:36:06 +0100
commit4562d294bb19aace4479e68a425b092ba401242f (patch)
tree9678c384d99aa8568594f7488ed480739cc65d12 /src/main/kotlin/features
parent29bdb00b7f22cf3de58fda23459b65740199e278 (diff)
downloadFirmament-4562d294bb19aace4479e68a425b092ba401242f.tar.gz
Firmament-4562d294bb19aace4479e68a425b092ba401242f.tar.bz2
Firmament-4562d294bb19aace4479e68a425b092ba401242f.zip
fix: Closing storage overlay when searching for "e"
Diffstat (limited to 'src/main/kotlin/features')
-rw-r--r--src/main/kotlin/features/inventory/storageoverlay/StorageOverlayScreen.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/features/inventory/storageoverlay/StorageOverlayScreen.kt b/src/main/kotlin/features/inventory/storageoverlay/StorageOverlayScreen.kt
index cf1cf1d..07a96c2 100644
--- a/src/main/kotlin/features/inventory/storageoverlay/StorageOverlayScreen.kt
+++ b/src/main/kotlin/features/inventory/storageoverlay/StorageOverlayScreen.kt
@@ -302,6 +302,7 @@ class StorageOverlayScreen : Screen(Text.literal("")) {
}
fun mouseClicked(mouseX: Double, mouseY: Double, button: Int, activePage: StoragePageSlot?): Boolean {
+ guiContext.setFocusedElement(null) // Blur all elements. They will be refocused by clickMCComponentInPlace if in doubt, and we don't have any double click components.
if (getScrollPanelInner().contains(mouseX, mouseY)) {
val data = StorageOverlay.Data.data ?: StorageData()
layoutedForEach(data) { rect, page, _ ->