aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2022-04-25 13:04:31 +0300
committerJuuz <6596629+Juuxel@users.noreply.github.com>2022-04-25 13:04:31 +0300
commitca6f1c693eb72aee5fc7c52927d5121a43197727 (patch)
treefd2584000ed8a86e6df003d0eb243adc8e61b83e
parentd72d94f483c897be54387b001425140b12e293ea (diff)
downloadLibGui-ca6f1c693eb72aee5fc7c52927d5121a43197727.tar.gz
LibGui-ca6f1c693eb72aee5fc7c52927d5121a43197727.tar.bz2
LibGui-ca6f1c693eb72aee5fc7c52927d5121a43197727.zip
Fix config screen not going back to previous screen when closed
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/impl/modmenu/ModMenuSupport.java3
1 files changed, 2 insertions, 1 deletions
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 6d1f094..b089694 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
@@ -10,7 +10,8 @@ public class ModMenuSupport implements ModMenuApi {
@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return screen -> new CottonClientScreen(new TranslatableText("options.libgui.libgui_settings"), new ConfigGui(screen)) {
- public void onClose() {
+ @Override
+ public void close() {
this.client.setScreen(screen);
}
};