From 5307fd45289449f9225844f42f56c7dcc3cc59e7 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Thu, 13 Sep 2018 20:01:35 +0100 Subject: [PATCH] Fix fluid config showing when it shouldn't --- src/main/java/techreborn/client/gui/GuiBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/techreborn/client/gui/GuiBase.java b/src/main/java/techreborn/client/gui/GuiBase.java index d5c228359..318ba5e67 100644 --- a/src/main/java/techreborn/client/gui/GuiBase.java +++ b/src/main/java/techreborn/client/gui/GuiBase.java @@ -183,7 +183,7 @@ public class GuiBase extends GuiContainer { GlStateManager.disableLighting(); GlStateManager.color(1, 1, 1, 1); } - if (builder.isInRect(guiLeft - 19, guiTop + 92 - offset + 27, 12, 12, mouseX, mouseY) && getMachine().hasSlotConfig()) { + if (builder.isInRect(guiLeft - 19, guiTop + 92 - offset + 27, 12, 12, mouseX, mouseY) && getMachine().showTankConfig()) { List list = new ArrayList<>(); list.add("Configure Fluids"); GuiUtils.drawHoveringText(list, mouseX - guiLeft , mouseY - guiTop , width, height, -1, mc.fontRenderer); @@ -274,7 +274,7 @@ public class GuiBase extends GuiContainer { GuiSlotConfiguration.reset(); } } - if(isPointInRegion(-26, 84 - offset + 27, 30, 30, mouseX, mouseY) && getMachine().hasSlotConfig()){ + if(isPointInRegion(-26, 84 - offset + 27, 30, 30, mouseX, mouseY) && getMachine().showTankConfig()){ if(slotConfigType != SlotConfigType.FLUIDS){ slotConfigType = SlotConfigType.FLUIDS; } else {