aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorVixid <52578495+VixidDev@users.noreply.github.com>2023-03-11 22:11:19 +0000
committerGitHub <noreply@github.com>2023-03-11 23:11:19 +0100
commita5433dc40dee8517fc0bd8105ae10e0f29778c40 (patch)
treeb1cce21f4b9240a5db2c12a763d9c2e9b8d4bd52 /src/main/java
parent1f8cc3427a7539b43b2d7f8ebd3ce81a6d77aa94 (diff)
downloadNotEnoughUpdates-a5433dc40dee8517fc0bd8105ae10e0f29778c40.tar.gz
NotEnoughUpdates-a5433dc40dee8517fc0bd8105ae10e0f29778c40.tar.bz2
NotEnoughUpdates-a5433dc40dee8517fc0bd8105ae10e0f29778c40.zip
Fixes NPE when exiting the Matriarch (#652)
Co-authored-by: Vixid <52578495+Vixid1@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java2
1 files changed, 1 insertions, 1 deletions
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);