diff options
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/MinionHelperApiLoader.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/MinionHelperApiLoader.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/MinionHelperApiLoader.java index cf12a099..de0aff7e 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/MinionHelperApiLoader.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/MinionHelperApiLoader.java @@ -52,6 +52,7 @@ public class MinionHelperApiLoader { private boolean apiReadyToUse = false; private ApiData apiData = null; private boolean notifyNoCollectionApi = false; + private long lastLoaded = 0; public MinionHelperApiLoader(MinionHelperManager manager) { this.manager = manager; @@ -75,10 +76,15 @@ public class MinionHelperApiLoader { if (dirty) { load(); + } else { + if (System.currentTimeMillis() > lastLoaded + 60_000 * 3) { + dirty = true; + } } } private void load() { + lastLoaded = System.currentTimeMillis(); EntityPlayerSP thePlayer = Minecraft.getMinecraft().thePlayer; if (thePlayer == null) return; |