diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-08-23 02:19:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 02:19:35 +0200 |
commit | b97dd13100f36dc64560067c707081af5bc8ff0c (patch) | |
tree | 8183ad24786b33482c6d7a26bfd1ac5f29cb7d06 /src/main/java/io | |
parent | 013abf6525c39b99afdeba62d33dbeac9b9f766e (diff) | |
download | NotEnoughUpdates-b97dd13100f36dc64560067c707081af5bc8ff0c.tar.gz NotEnoughUpdates-b97dd13100f36dc64560067c707081af5bc8ff0c.tar.bz2 NotEnoughUpdates-b97dd13100f36dc64560067c707081af5bc8ff0c.zip |
Fix Crash in Navigation.java (#244)
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/Navigation.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/Navigation.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/Navigation.java index 9cc872b7..541a76e8 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/Navigation.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/Navigation.java @@ -390,7 +390,7 @@ public class Navigation { && NotEnoughUpdates.INSTANCE.config.misc.untrackCloseWaypoints && island.equals(SBInfo.getInstance().mode)) { EntityPlayerSP thePlayer = Minecraft.getMinecraft().thePlayer; - if (thePlayer.getDistanceSq(position) < 16) + if (thePlayer != null && thePlayer.getDistanceSq(position) < 16) untrackWaypoint(); } } |