From d249bbdc8e99bfdab81aa6b215e70c4f21def91e Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Tue, 14 Mar 2023 02:30:28 +1100 Subject: Added option to disable cit while in the storage overlay for fps (#656) --- .../moulberry/notenoughupdates/miscfeatures/StorageManager.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/StorageManager.java') 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; } -- cgit