aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/StorageManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/StorageManager.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/StorageManager.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/StorageManager.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/StorageManager.java
index bef07399..22dd8a15 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/StorageManager.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/StorageManager.java
@@ -345,7 +345,10 @@ public class StorageManager {
return stack;
}
+ public boolean isStorageOpen = false;
+
public boolean shouldRenderStorageOverlay(String containerName) {
+ isStorageOpen = false;
if (!NotEnoughUpdates.INSTANCE.config.storageGUI.enableStorageGUI3) {
shouldRenderStorageOverlayCached = false;
return false;
@@ -363,10 +366,12 @@ public class StorageManager {
if (getCurrentWindowId() != -1 && getCurrentPageId() != -1) {
shouldRenderStorageOverlayCached = true;
+ isStorageOpen = true;
return true;
}
shouldRenderStorageOverlayCached = containerName != null && containerName.trim().startsWith("Storage");
+ isStorageOpen = shouldRenderStorageOverlayCached;
return shouldRenderStorageOverlayCached;
}