aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/gui/GuiItemList.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-01-02 17:26:37 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-01-02 17:26:37 +0800
commit90ae207ac43e5d7a7ae6a1eab59e0f522d931d72 (patch)
tree69b53bbb1fa9fe13a94ae63defa6631c564c81a9 /src/main/java/me/shedaniel/gui/GuiItemList.java
parente0f80d101d2610051272a94e905eaf8014aead41 (diff)
downloadRoughlyEnoughItems-90ae207ac43e5d7a7ae6a1eab59e0f522d931d72.tar.gz
RoughlyEnoughItems-90ae207ac43e5d7a7ae6a1eab59e0f522d931d72.tar.bz2
RoughlyEnoughItems-90ae207ac43e5d7a7ae6a1eab59e0f522d931d72.zip
Temp solution on config
Diffstat (limited to 'src/main/java/me/shedaniel/gui/GuiItemList.java')
-rwxr-xr-xsrc/main/java/me/shedaniel/gui/GuiItemList.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/gui/GuiItemList.java b/src/main/java/me/shedaniel/gui/GuiItemList.java
index accd02f61..f0c8ce3aa 100755
--- a/src/main/java/me/shedaniel/gui/GuiItemList.java
+++ b/src/main/java/me/shedaniel/gui/GuiItemList.java
@@ -29,7 +29,7 @@ import java.util.stream.Stream;
public class GuiItemList extends Drawable {
- public static final int FOOTERSIZE = 44;
+ public final int FOOTERSIZE;
private ContainerGui overlayedGui;
private static int page = 0;
private ArrayList<REISlot> displaySlots;
@@ -48,6 +48,7 @@ public class GuiItemList extends Drawable {
public GuiItemList(ContainerGui overlayedGui) {
super(calculateRect(overlayedGui));
+ FOOTERSIZE = Core.centreSearchBox ? 18 : 44;
displaySlots = new ArrayList<>();
controls = new ArrayList<>();
this.overlayedGui = overlayedGui;
@@ -119,7 +120,7 @@ public class GuiItemList extends Drawable {
private Rectangle getSearchBoxArea() {
int ch = ((IMixinContainerGui) overlayedGui).getContainerHeight(), cw = ((IMixinContainerGui) overlayedGui).getContainerWidth();
- if (Core.config.centreSearchBox) {
+ if (Core.centreSearchBox) {
if (ch + 4 + 18 > rect.height) //Will be out of bounds
return new Rectangle(overlayedGui.width / 2 - cw / 2, rect.height + 100, cw, 18);
return new Rectangle(overlayedGui.width / 2 - cw / 2, rect.height - 31, cw, 18);