Fixed JEI overlay disappearing now and again, fixes #410
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
- Added recipe transfer handler for Solderer (way2muchnoise)
|
- 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)
|
- 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 crash with JEI when changing screens in autocrafting (raoulvdberge)
|
||||||
|
- Fixed JEI overlay disappearing now and again (raoulvdberge)
|
||||||
- Fixed Detector hitbox (raoulvdberge)
|
- Fixed Detector hitbox (raoulvdberge)
|
||||||
|
|
||||||
### 1.1.1
|
### 1.1.1
|
||||||
|
|||||||
@@ -45,26 +45,14 @@ public abstract class GuiBase extends GuiContainer {
|
|||||||
this.ySize = height;
|
this.ySize = height;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasSideButtons() {
|
|
||||||
return buttonList.stream().anyMatch(b -> b instanceof SideButton);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initGui() {
|
public void initGui() {
|
||||||
if (hasSideButtons()) {
|
|
||||||
xSize -= SideButton.WIDTH;
|
|
||||||
}
|
|
||||||
|
|
||||||
super.initGui();
|
super.initGui();
|
||||||
|
|
||||||
lastButtonId = 0;
|
lastButtonId = 0;
|
||||||
lastSideButtonY = 6;
|
lastSideButtonY = 6;
|
||||||
|
|
||||||
init(guiLeft, guiTop);
|
init(guiLeft, guiTop);
|
||||||
|
|
||||||
if (hasSideButtons()) {
|
|
||||||
xSize += SideButton.WIDTH;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user