From a826e83f30ea6af42cd042404826641c34cd71d5 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:36:19 +1000 Subject: Fix number format exception when getting got pot time from tablist (#1302) --- .../io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java | 2 ++ 1 file changed, 2 insertions(+) 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 96260e7f..95b8b56a 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java @@ -492,6 +492,7 @@ public class TimersOverlay extends TextTabOverlay { if (activeEffectsMatcher.group(i) == null) { continue; } + if (activeEffectsMatcher.group(i).startsWith(" ")) break; godpotRemainingTime = Integer.parseInt(activeEffectsMatcher.group(i)); godpotRemainingTimeType = activeEffectsMatcher.group(i + 1); godPotDuration += @@ -512,6 +513,7 @@ public class TimersOverlay extends TextTabOverlay { if (godPotionMatcher.group(i) == null) { continue; } + if (godPotionMatcher.group(i).startsWith(" ")) break; godpotRemainingTime = Integer.parseInt(godPotionMatcher.group(i)); godpotRemainingTimeType = godPotionMatcher.group(i + 1); godPotDuration += -- cgit