diff --git a/core/src/mindustry/core/UI.java b/core/src/mindustry/core/UI.java index 7342a8376c..c3c90b80cd 100644 --- a/core/src/mindustry/core/UI.java +++ b/core/src/mindustry/core/UI.java @@ -717,7 +717,12 @@ public class UI implements ApplicationListener, Loadable{ /** Shows a menu that hides when another followUp-menu is shown or when nothing is selected. * @see UI#showMenu(String, String, String[][], Intc) */ public void showFollowUpMenu(int menuId, String title, String message, String[][] options, Intc callback) { - Dialog dialog = newMenuDialog(title, message, options, (option, myself) -> callback.get(option)); + Dialog dialog = newMenuDialog(title, message, options, (option, myself) -> { + callback.get(option); + if(!state.isGame()){ + myself.hide(); + } + }); dialog.closeOnBack(() -> { followUpMenus.remove(menuId); callback.get(-1);