diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2022-10-06 07:33:58 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 22:33:58 +0200 |
commit | 3d627400e94235df69327fe248f5c6f4fff07382 (patch) | |
tree | 496db544d1b5a14e8c9d0d02811664e05e4815fc /src | |
parent | 61513e20063d8997ba8a6d0cd7f34ef4ca29cdb6 (diff) | |
download | NotEnoughUpdates-3d627400e94235df69327fe248f5c6f4fff07382.tar.gz NotEnoughUpdates-3d627400e94235df69327fe248f5c6f4fff07382.tar.bz2 NotEnoughUpdates-3d627400e94235df69327fe248f5c6f4fff07382.zip |
fix crash if profile specific is null (#342)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/Navigation.java | 1 |
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; |