aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-08-04 00:06:26 +0200
committernea <nea@nea.moe>2023-08-04 00:06:26 +0200
commit4844e67511aede3909e80c615492c5d4b2032cce (patch)
tree545fa2d89fdffe80ec520cfa73cf7a3be077ada2 /src/main
parent247239132ad481d5ba9d775e723e134ca116837e (diff)
downloadNotEnoughUpdates-4844e67511aede3909e80c615492c5d4b2032cce.tar.gz
NotEnoughUpdates-4844e67511aede3909e80c615492c5d4b2032cce.tar.bz2
NotEnoughUpdates-4844e67511aede3909e80c615492c5d4b2032cce.zip
Fix crash in storage overlayfix/storage
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java1
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);