From a5433dc40dee8517fc0bd8105ae10e0f29778c40 Mon Sep 17 00:00:00 2001 From: Vixid <52578495+VixidDev@users.noreply.github.com> Date: Sat, 11 Mar 2023 22:11:19 +0000 Subject: Fixes NPE when exiting the Matriarch (#652) Co-authored-by: Vixid <52578495+Vixid1@users.noreply.github.com> --- .../io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') 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 f741f032..1d7126a2 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java @@ -1025,7 +1025,7 @@ public class TimersOverlay extends TextTabOverlay { } public static void processActionBar(String msg) { - if (SBInfo.getInstance().location.equals("Belly of the Beast")) { + if (SBInfo.getInstance().location.equals("Belly of the Beast") && msg.contains("Pearls Collected")) { try { msg = Utils.cleanColour(msg); msg = msg.substring(msg.indexOf("Pearls Collected: ") + 18); -- cgit