Fixed JEI overlay disappearing now and again, fixes #410

This commit is contained in:
Raoul Van den Berge
2016-10-02 22:46:27 +02:00
parent 54d60ea927
commit be6b5fb855
2 changed files with 1 additions and 12 deletions

View File

@@ -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