From de22a446533d682ee87c18f0406560a868c3ea79 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 30 Aug 2023 13:46:40 +0200 Subject: Fix crash in storage overlay (#798) --- .../io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/io') 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); -- cgit