From d7c31c78fe6cf41de8f0140f00a94d57fbea22be Mon Sep 17 00:00:00 2001 From: DoKM Date: Wed, 25 Aug 2021 09:51:17 +0200 Subject: Fix fetchur crash/disable BuilderW/BZ/Prisma overlay when not on Pisland --- .../io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java index 429a3c60..5c0c5ddd 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java @@ -134,10 +134,10 @@ public class TimersOverlay extends TextOverlay { ZonedDateTime currentTimeEST = ZonedDateTime.now(ZoneId.of("America/Atikokan")); - long fetchurIndex = (currentTimeEST.getDayOfMonth() % 13)-1; + long fetchurIndex = ((currentTimeEST.getDayOfMonth()+3) % 13)-1; //Added because disabled fetchur and enabled it again but it was showing the wrong item //Lets see if this stays correct - fetchurIndex+=2; + if(fetchurIndex < 0) fetchurIndex += 13; icon = FETCHUR_ICONS[(int)fetchurIndex]; -- cgit