From 2e115242a2a72a878500b67eb1c2a46d1a9d7a59 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Mon, 29 Jan 2018 13:14:46 +0000 Subject: [PATCH] Might fix #1421 --- .../java/techreborn/client/gui/slot/GuiSlotConfiguration.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/techreborn/client/gui/slot/GuiSlotConfiguration.java b/src/main/java/techreborn/client/gui/slot/GuiSlotConfiguration.java index a6d05d1cf..a71bb9ae1 100644 --- a/src/main/java/techreborn/client/gui/slot/GuiSlotConfiguration.java +++ b/src/main/java/techreborn/client/gui/slot/GuiSlotConfiguration.java @@ -198,6 +198,10 @@ public class GuiSlotConfiguration { List list = new ArrayList<>(); ConfigSlotElement slotElement = slotElementMap.get(slectedSlot); + if(slotElement == null || guiBase == null){ + return Collections.emptyList(); + } + //I have no idea why this works, but it does. pls fix if you know how. list.add(new Rectangle(slotElement.adjustX(guiBase, slotElement.getX()) + guiBase.getGuiLeft() - 25, slotElement.adjustY(guiBase, 0) -10, slotElement.getWidth() - 5, slotElement.getHeight() + 15)); return list;