aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author5dt1 <5dt1surYT@gmail.com>2023-04-04 20:04:46 +0200
committerGitHub <noreply@github.com>2023-04-04 20:04:46 +0200
commitbbb1e2065d9428e6d981470eec0e5f2e2ed80713 (patch)
treea77ec8d66979a439325b129aed2cf122ce1c7aa3 /src
parent75949d7cb26b7f1e6cb07c8277bd75dbd13a959a (diff)
downloadNotEnoughUpdates-bbb1e2065d9428e6d981470eec0e5f2e2ed80713.tar.gz
NotEnoughUpdates-bbb1e2065d9428e6d981470eec0e5f2e2ed80713.tar.bz2
NotEnoughUpdates-bbb1e2065d9428e6d981470eec0e5f2e2ed80713.zip
Fix Crash in experimentation table (#675)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java b/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java
index d324184f..54ffe35e 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java
@@ -485,7 +485,7 @@ public class RenderListener {
}
public void iterateButtons(GuiContainer gui, BiConsumer<NEUConfig.InventoryButton, Rectangle> acceptButton) {
- if (NEUApi.disableInventoryButtons || EnchantingSolvers.disableButtons()) {
+ if (NEUApi.disableInventoryButtons || EnchantingSolvers.disableButtons() || gui == null) {
return;
}