From ca6f1c693eb72aee5fc7c52927d5121a43197727 Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Mon, 25 Apr 2022 13:04:31 +0300 Subject: Fix config screen not going back to previous screen when closed --- .../io/github/cottonmc/cotton/gui/impl/modmenu/ModMenuSupport.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } }; -- cgit