aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/config/ConfigScreen.java
diff options
context:
space:
mode:
authorRaph Hennessy <raph.hennessy@gmail.com>2019-02-28 19:34:01 +1100
committerDaniel She <shekwancheung0528@gmail.com>2019-02-28 16:34:01 +0800
commit04f96f866d09002808c2bf6ab1f252f781751617 (patch)
treec9147b09d85660a9ea812310dbbfc25e3f2dc0cb /src/main/java/me/shedaniel/rei/gui/config/ConfigScreen.java
parent60fb69c2763386cf38aea12b1fa817d51125b0db (diff)
downloadRoughlyEnoughItems-04f96f866d09002808c2bf6ab1f252f781751617.tar.gz
RoughlyEnoughItems-04f96f866d09002808c2bf6ab1f252f781751617.tar.bz2
RoughlyEnoughItems-04f96f866d09002808c2bf6ab1f252f781751617.zip
Updated to 19w09a (#43)
* Update MixinContainerScreen.java * 19w09a update
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/config/ConfigScreen.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/config/ConfigScreen.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/config/ConfigScreen.java b/src/main/java/me/shedaniel/rei/gui/config/ConfigScreen.java
index 6aa884b8e..6793ac6f7 100644
--- a/src/main/java/me/shedaniel/rei/gui/config/ConfigScreen.java
+++ b/src/main/java/me/shedaniel/rei/gui/config/ConfigScreen.java
@@ -39,7 +39,7 @@ public class ConfigScreen extends Screen {
@Override
protected void onInitialized() {
- listeners.add(entryListWidget = new ConfigEntryListWidget(client, width, height, 32, height - 32, 24));
+ listeners.add(entryListWidget = new ConfigEntryListWidget(client, screenWidth, screenHeight, 32, screenHeight - 32, 24));
entryListWidget.configClearEntries();
entryListWidget.configAddEntry(new ConfigEntry.CategoryTitleConfigEntry(new TranslatableTextComponent("text.rei.config.general")));
entryListWidget.configAddEntry(new ConfigEntry.ButtonConfigEntry(new TranslatableTextComponent("text.rei.config.cheating"), new ConfigEntry.ButtonConfigEntry.ConfigEntryButtonProvider() {
@@ -315,7 +315,7 @@ public class ConfigScreen extends Screen {
return false;
}
}));
- addButton(new ButtonWidget(width / 2 - 100, height - 26, I18n.translate("gui.done")) {
+ addButton(new ButtonWidget(screenWidth / 2 - 100, screenHeight - 26, I18n.translate("gui.done")) {
@Override
public void onPressed(double double_1, double double_2) {
try {
@@ -338,7 +338,7 @@ public class ConfigScreen extends Screen {
public void draw(int int_1, int int_2, float float_1) {
this.drawTextureBackground(0);
this.entryListWidget.draw(int_1, int_2, float_1);
- this.drawStringCentered(this.fontRenderer, I18n.translate("text.rei.config"), this.width / 2, 16, 16777215);
+ this.drawStringCentered(this.fontRenderer, I18n.translate("text.rei.config"), this.screenWidth / 2, 16, 16777215);
super.draw(int_1, int_2, float_1);
}