From bbb1e2065d9428e6d981470eec0e5f2e2ed80713 Mon Sep 17 00:00:00 2001 From: 5dt1 <5dt1surYT@gmail.com> Date: Tue, 4 Apr 2023 20:04:46 +0200 Subject: Fix Crash in experimentation table (#675) --- .../io/github/moulberry/notenoughupdates/listener/RenderListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 acceptButton) { - if (NEUApi.disableInventoryButtons || EnchantingSolvers.disableButtons()) { + if (NEUApi.disableInventoryButtons || EnchantingSolvers.disableButtons() || gui == null) { return; } -- cgit