diff options
author | Linnea Gräf <roman.graef@gmail.com> | 2023-08-30 13:46:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-30 21:46:40 +1000 |
commit | de22a446533d682ee87c18f0406560a868c3ea79 (patch) | |
tree | d303ef9f44562093f5a473a862324c02aa12d26b | |
parent | 7b1ec0196ec068a469eb49fedc624347dd2a9158 (diff) | |
download | NotEnoughUpdates-de22a446533d682ee87c18f0406560a868c3ea79.tar.gz NotEnoughUpdates-de22a446533d682ee87c18f0406560a868c3ea79.tar.bz2 NotEnoughUpdates-de22a446533d682ee87c18f0406560a868c3ea79.zip |
Fix crash in storage overlay (#798)
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java index 4a478d1f..13cafd98 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java @@ -2131,6 +2131,7 @@ public class StorageOverlay extends GuiElement { for (Slot slot : container.inventorySlots.inventorySlots) { if (slot != null && ((AccessorGuiContainer) container).doIsMouseOverSlot(slot, mouseX, mouseY)) { String internalName = manager.createItemResolutionQuery().withItemStack(slot.getStack()).resolveInternalName(); + if (internalName == null) continue; JsonObject item = manager.getItemInformation().get(internalName); if (Keyboard.getEventKey() == manager.keybindViewRecipe.getKeyCode()) manager.showRecipe(item); if (Keyboard.getEventKey() == manager.keybindViewUsages.getKeyCode()) manager.displayGuiItemUsages(internalName); |