diff options
author | Juuz <6596629+Juuxel@users.noreply.github.com> | 2022-04-25 13:04:31 +0300 |
---|---|---|
committer | Juuz <6596629+Juuxel@users.noreply.github.com> | 2022-04-25 13:04:31 +0300 |
commit | ca6f1c693eb72aee5fc7c52927d5121a43197727 (patch) | |
tree | fd2584000ed8a86e6df003d0eb243adc8e61b83e | |
parent | d72d94f483c897be54387b001425140b12e293ea (diff) | |
download | LibGui-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.java | 3 |
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); } }; |