diff options
| author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2023-03-14 02:30:28 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-13 16:30:28 +0100 |
| commit | d249bbdc8e99bfdab81aa6b215e70c4f21def91e (patch) | |
| tree | 01f9e57b9e2b46dd9bd345569cb882cc8db974e4 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures | |
| parent | 1bd7d5b87d62045a53ff6f3ea1b66cf71266610f (diff) | |
| download | notenoughupdates-d249bbdc8e99bfdab81aa6b215e70c4f21def91e.tar.gz notenoughupdates-d249bbdc8e99bfdab81aa6b215e70c4f21def91e.tar.bz2 notenoughupdates-d249bbdc8e99bfdab81aa6b215e70c4f21def91e.zip | |
Added option to disable cit while in the storage overlay for fps (#656)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/StorageManager.java | 5 |
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; } |
