aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-11 16:58:04 +0200
committerGitHub <noreply@github.com>2024-04-11 16:58:04 +0200
commitb90bc26a68a3392d17f9f54dbe70ddc544b61fd3 (patch)
treedf6fc0b4888c6eb442a82c34ac6e72de1c5d08b8 /src
parent22a4df292239b5d68e52e0e9679dfc4db2acc78f (diff)
downloadNotEnoughUpdates-b90bc26a68a3392d17f9f54dbe70ddc544b61fd3.tar.gz
NotEnoughUpdates-b90bc26a68a3392d17f9f54dbe70ddc544b61fd3.tar.bz2
NotEnoughUpdates-b90bc26a68a3392d17f9f54dbe70ddc544b61fd3.zip
Fix /storage warning showing when searching (#1086)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
index 1c4bd867..4ca5e764 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
@@ -1205,7 +1205,7 @@ public class StorageOverlay extends GuiElement {
);
}
- if (StorageManager.getInstance().storageConfig.displayToStorageIdMapRender.isEmpty()) {
+ if (StorageManager.getInstance().storageConfig.displayToStorageIdMapRender.isEmpty() && searchBar.getText().isEmpty()) {
Utils.drawStringScaledFillWidth(
"Please open /storage instead of /ec",
sizeX / 2,