aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java
index 8f6671d2..7282aad7 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java
@@ -107,6 +107,8 @@ public class AuctionBINWarning extends GuiElement {
}
ItemStack sellStack = event.guiContainer.inventorySlots.getSlot(13).getStack();
+ if (sellStack == null) return;
+
String internalname = NotEnoughUpdates.INSTANCE.manager.getInternalNameForItem(sellStack);
sellStackAmount = sellStack.stackSize;