Skip to content

Commit

Permalink
Fix config screen not going back to previous screen when closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Apr 25, 2022
1 parent d72d94f commit ca6f1c6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
Expand Down

0 comments on commit ca6f1c6

Please sign in to comment.