diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2021-08-19 16:13:01 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2021-08-19 16:13:01 +0200 |
commit | daf03820a63662b3024e1722a587c8fffd694b3b (patch) | |
tree | c47465807da13290c5f33c94740a15b2315c3d05 /src/main | |
parent | f26c7b84a9e2d72d4ba3e7b03283697bfe610ea8 (diff) | |
download | NotEnoughUpdates-daf03820a63662b3024e1722a587c8fffd694b3b.tar.gz NotEnoughUpdates-daf03820a63662b3024e1722a587c8fffd694b3b.tar.bz2 NotEnoughUpdates-daf03820a63662b3024e1722a587c8fffd694b3b.zip |
fix crash that might happen
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java | 2 |
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(); } } |