aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2022-10-06 07:33:58 +1100
committerGitHub <noreply@github.com>2022-10-05 22:33:58 +0200
commit3d627400e94235df69327fe248f5c6f4fff07382 (patch)
tree496db544d1b5a14e8c9d0d02811664e05e4815fc
parent61513e20063d8997ba8a6d0cd7f34ef4ca29cdb6 (diff)
downloadNotEnoughUpdates-3d627400e94235df69327fe248f5c6f4fff07382.tar.gz
NotEnoughUpdates-3d627400e94235df69327fe248f5c6f4fff07382.tar.bz2
NotEnoughUpdates-3d627400e94235df69327fe248f5c6f4fff07382.zip
fix crash if profile specific is null (#342)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/Navigation.java1
1 files changed, 1 insertions, 0 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 541a76e8..6244c32c 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/Navigation.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/Navigation.java
@@ -208,6 +208,7 @@ public class Navigation {
if (event.phase != TickEvent.Phase.START) return;
if (Minecraft.getMinecraft().theWorld == null) return;
if (Minecraft.getMinecraft().thePlayer == null) return;
+ if (neu.config.getProfileSpecific() == null) return;
if (Minecraft.getMinecraft().currentScreen instanceof GuiChest && RenderListener.inventoryLoaded) {
GuiChest currentScreen = (GuiChest) Minecraft.getMinecraft().currentScreen;