diff options
author | nea <nea@nea.moe> | 2023-08-04 00:06:26 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-08-04 00:06:26 +0200 |
commit | 4844e67511aede3909e80c615492c5d4b2032cce (patch) | |
tree | 545fa2d89fdffe80ec520cfa73cf7a3be077ada2 /src/main/java | |
parent | 247239132ad481d5ba9d775e723e134ca116837e (diff) | |
download | NotEnoughUpdates-fix/storage.tar.gz NotEnoughUpdates-fix/storage.tar.bz2 NotEnoughUpdates-fix/storage.zip |
Fix crash in storage overlayfix/storage
Diffstat (limited to 'src/main/java')
-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); |