aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2021-08-19 16:13:01 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2021-08-19 16:13:01 +0200
commitdaf03820a63662b3024e1722a587c8fffd694b3b (patch)
treec47465807da13290c5f33c94740a15b2315c3d05 /src
parentf26c7b84a9e2d72d4ba3e7b03283697bfe610ea8 (diff)
downloadNotEnoughUpdates-daf03820a63662b3024e1722a587c8fffd694b3b.tar.gz
NotEnoughUpdates-daf03820a63662b3024e1722a587c8fffd694b3b.tar.bz2
NotEnoughUpdates-daf03820a63662b3024e1722a587c8fffd694b3b.zip
fix crash that might happen
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java
index a8be9991..2e108d21 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java
@@ -836,7 +836,7 @@ public class NEUEventListener {
e.message = new ChatComponentText(m2);
}
}
- if (unformatted.startsWith("You found ") && SBInfo.getInstance().getLocation().equals("crystal_hollows")){
+ if (unformatted.startsWith("You found ") && SBInfo.getInstance().getLocation() != null && SBInfo.getInstance().getLocation().equals("crystal_hollows")){
CrystalMetalDetectorSolver.reset();
}
}