From 63cfc3c1dca714ab4be1c0442bc29b0cc7c904e8 Mon Sep 17 00:00:00 2001 From: Elson Costa Date: Sat, 16 Mar 2024 12:43:18 -0300 Subject: [PATCH] Fixing when server is configured to shut down, this wasn't happening, because of this elseif. --- data/scripts/globalevents/global_server_save.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/scripts/globalevents/global_server_save.lua b/data/scripts/globalevents/global_server_save.lua index 00eaebbc3c3..c68c3dedc88 100644 --- a/data/scripts/globalevents/global_server_save.lua +++ b/data/scripts/globalevents/global_server_save.lua @@ -5,7 +5,8 @@ local function ServerSave() if configManager.getBoolean(configKeys.GLOBAL_SERVER_SAVE_CLOSE) then Game.setGameState(GAME_STATE_CLOSED) - elseif configManager.getBoolean(configKeys.GLOBAL_SERVER_SAVE_SHUTDOWN) then + end + if configManager.getBoolean(configKeys.GLOBAL_SERVER_SAVE_SHUTDOWN) then Game.setGameState(GAME_STATE_SHUTDOWN) end