aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2021-07-11 13:21:39 +0300
committerJuuz <6596629+Juuxel@users.noreply.github.com>2021-07-11 13:21:39 +0300
commit84a07a241ddc03be92680a077c9308695b66a179 (patch)
tree784abe3cd7e1682937209598d2c056b65b4f3d27 /src/main/java/io
parent9dfd9f06b2154b01bfc1acf01b6bf3eec27fccdd (diff)
downloadLibGui-84a07a241ddc03be92680a077c9308695b66a179.tar.gz
LibGui-84a07a241ddc03be92680a077c9308695b66a179.tar.bz2
LibGui-84a07a241ddc03be92680a077c9308695b66a179.zip
Update Yarn
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/impl/modmenu/ConfigGui.java2
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/impl/modmenu/ModMenuSupport.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/impl/modmenu/ConfigGui.java b/src/main/java/io/github/cottonmc/cotton/gui/impl/modmenu/ConfigGui.java
index 8c237a8..b1faf17 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/impl/modmenu/ConfigGui.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/impl/modmenu/ConfigGui.java
@@ -52,7 +52,7 @@ public class ConfigGui extends LightweightGuiDescription {
WButton doneButton = new WButton(new TranslatableText("gui.done"));
doneButton.setOnClick(()->{
- MinecraftClient.getInstance().openScreen(previous);
+ MinecraftClient.getInstance().setScreen(previous);
});
root.add(doneButton, 0, 5, 3, 1);
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/impl/modmenu/ModMenuSupport.java b/src/main/java/io/github/cottonmc/cotton/gui/impl/modmenu/ModMenuSupport.java
index 60e62cb..6d1f094 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/impl/modmenu/ModMenuSupport.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/impl/modmenu/ModMenuSupport.java
@@ -11,7 +11,7 @@ public class ModMenuSupport implements ModMenuApi {
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return screen -> new CottonClientScreen(new TranslatableText("options.libgui.libgui_settings"), new ConfigGui(screen)) {
public void onClose() {
- this.client.openScreen(screen);
+ this.client.setScreen(screen);
}
};
}