From be6b5fb8551b150db7d8ed89d7ec763a7d3bbcf9 Mon Sep 17 00:00:00 2001 From: Raoul Van den Berge Date: Sun, 2 Oct 2016 22:46:27 +0200 Subject: [PATCH] Fixed JEI overlay disappearing now and again, fixes #410 --- CHANGELOG.md | 1 + src/main/java/refinedstorage/gui/GuiBase.java | 12 ------------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90dd9343e..b901a43be 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Added recipe transfer handler for Solderer (way2muchnoise) - It is now possible to start a crafting task even if the crafting preview says you can't (raoulvdberge) - Fixed crash with JEI when changing screens in autocrafting (raoulvdberge) +- Fixed JEI overlay disappearing now and again (raoulvdberge) - Fixed Detector hitbox (raoulvdberge) ### 1.1.1 diff --git a/src/main/java/refinedstorage/gui/GuiBase.java b/src/main/java/refinedstorage/gui/GuiBase.java index 47269bcec..621c3f016 100755 --- a/src/main/java/refinedstorage/gui/GuiBase.java +++ b/src/main/java/refinedstorage/gui/GuiBase.java @@ -45,26 +45,14 @@ public abstract class GuiBase extends GuiContainer { this.ySize = height; } - private boolean hasSideButtons() { - return buttonList.stream().anyMatch(b -> b instanceof SideButton); - } - @Override public void initGui() { - if (hasSideButtons()) { - xSize -= SideButton.WIDTH; - } - super.initGui(); lastButtonId = 0; lastSideButtonY = 6; init(guiLeft, guiTop); - - if (hasSideButtons()) { - xSize += SideButton.WIDTH; - } } @Override