aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-03-17 23:42:19 -0400
committerbowser0000 <bowser0000@gmail.com>2022-03-17 23:42:19 -0400
commit165844ad2624dcdff4517b94f300329cf3a3bf70 (patch)
treebf9c05c995d4830b23e4927de0ee71993472aaca /src/main/java
parent5c1ab9451fc3ef7054f2718719fcf0fbe60ada8b (diff)
downloadSkyblockMod-165844ad2624dcdff4517b94f300329cf3a3bf70.tar.gz
SkyblockMod-165844ad2624dcdff4517b94f300329cf3a3bf70.tar.bz2
SkyblockMod-165844ad2624dcdff4517b94f300329cf3a3bf70.zip
Fix NPE with chat waypoints
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/me/Danker/features/CrystalHollowWaypoints.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/features/CrystalHollowWaypoints.java b/src/main/java/me/Danker/features/CrystalHollowWaypoints.java
index 5b8d665..1ce4150 100644
--- a/src/main/java/me/Danker/features/CrystalHollowWaypoints.java
+++ b/src/main/java/me/Danker/features/CrystalHollowWaypoints.java
@@ -115,6 +115,8 @@ public class CrystalHollowWaypoints {
String message = StringUtils.stripControlCodes(event.message.getUnformattedText());
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
+ if (player == null) return;
+
/* examples
$SBECHWP:Mines of Divan@-673,117,426
$SBECHWP:Khazad-dûm@-292,63,281\nFairy Grotto@-216,110,400\njungle temple@-525,110,395\nJungle Temple@-493,101,425\nMines of Divan@-673,117,426