From 8ec2e406108012be7801a8f773d091c3ea325eb6 Mon Sep 17 00:00:00 2001 From: BalaM314 <71201189+BalaM314@users.noreply.github.com> Date: Thu, 24 Mar 2022 20:12:44 +0530 Subject: [PATCH] Add "Exiting to reload mods." logger message (#6662) To allow for the game to be automatically restarted --- core/src/mindustry/ui/dialogs/ModsDialog.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/ui/dialogs/ModsDialog.java b/core/src/mindustry/ui/dialogs/ModsDialog.java index 5a7bf4d692..45699b0d00 100644 --- a/core/src/mindustry/ui/dialogs/ModsDialog.java +++ b/core/src/mindustry/ui/dialogs/ModsDialog.java @@ -323,7 +323,10 @@ public class ModsDialog extends BaseDialog{ } private void reload(){ - ui.showInfoOnHidden("@mods.reloadexit", () -> Core.app.exit()); + ui.showInfoOnHidden("@mods.reloadexit", () -> { + Log.info("Exiting to reload mods."); + Core.app.exit(); + }); } private void showMod(LoadedMod mod){