Fix oredict button disappearing
This commit is contained in:
@@ -105,9 +105,6 @@ public class GuiGrid extends GuiBase {
|
|||||||
int sx = x + 80 + 1;
|
int sx = x + 80 + 1;
|
||||||
int sy = y + 6 + 1;
|
int sy = y + 6 + 1;
|
||||||
|
|
||||||
int ox = x + 64;
|
|
||||||
int oy = y + 138;
|
|
||||||
|
|
||||||
if (searchField == null) {
|
if (searchField == null) {
|
||||||
searchField = new GuiTextField(0, fontRendererObj, sx, sy, 88 - 6, fontRendererObj.FONT_HEIGHT);
|
searchField = new GuiTextField(0, fontRendererObj, sx, sy, 88 - 6, fontRendererObj.FONT_HEIGHT);
|
||||||
searchField.setEnableBackgroundDrawing(false);
|
searchField.setEnableBackgroundDrawing(false);
|
||||||
@@ -121,12 +118,7 @@ public class GuiGrid extends GuiBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (grid.getType() == EnumGridType.PATTERN) {
|
if (grid.getType() == EnumGridType.PATTERN) {
|
||||||
if (oredictPattern == null) {
|
oredictPattern = addCheckBox(x + 64, y + 138, I18n.format("misc.refinedstorage:oredict"), TileGrid.OREDICT_PATTERN.getValue());
|
||||||
oredictPattern = addCheckBox(ox, oy, I18n.format("misc.refinedstorage:oredict"), TileGrid.OREDICT_PATTERN.getValue());
|
|
||||||
} else {
|
|
||||||
oredictPattern.xPosition = ox;
|
|
||||||
oredictPattern.yPosition = oy;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (grid.getType() != EnumGridType.FLUID) {
|
if (grid.getType() != EnumGridType.FLUID) {
|
||||||
|
|||||||
Reference in New Issue
Block a user