diff options
| author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2022-11-20 13:42:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-20 13:42:58 +0100 |
| commit | 3d37cee20ddcf92b47144cb1e3ae25785a5e8bc2 (patch) | |
| tree | 43ffa014196baf4e2c027a37ed54304f8db4827f /src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiNavigation.java | |
| parent | f6fc2742b86333947fe506de1e80093b1f8ad7ad (diff) | |
| download | notenoughupdates-3d37cee20ddcf92b47144cb1e3ae25785a5e8bc2.tar.gz notenoughupdates-3d37cee20ddcf92b47144cb1e3ae25785a5e8bc2.tar.bz2 notenoughupdates-3d37cee20ddcf92b47144cb1e3ae25785a5e8bc2.zip | |
Added Abiphone contact requirements and location. (#411)
* Added Abiphone contact requirements and location.
* Using more repo data and less item lore data
* F3+H support
* merge problems
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiNavigation.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiNavigation.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiNavigation.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiNavigation.java index dcb1344c..35c80579 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiNavigation.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiNavigation.java @@ -87,6 +87,10 @@ public class GuiNavigation extends GuiScreen { Minecraft.getMinecraft().getTextureManager().bindTexture(BACKGROUND); String name = searchResults.get(i); JsonObject json = NotEnoughUpdates.INSTANCE.navigation.getWaypoints().get(name); + + //to prevent an NPE when trying to render a waypoint from AbiphoneContactExtraInformation + if (json == null) continue; + boolean selected = name.equals(NotEnoughUpdates.INSTANCE.navigation.getInternalname()); int baseX = guiLeft + LIST_START_X; int baseY = guiTop + LIST_START_Y + LIST_OFFSET_Y * i; |
