Skip to content

Commit

Permalink
Fixing when server is configured to shut down, this wasn't happening,…
Browse files Browse the repository at this point in the history
… because of this elseif.
  • Loading branch information
elsongabriel committed Mar 16, 2024
1 parent 50da833 commit 63cfc3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/scripts/globalevents/global_server_save.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 63cfc3c

Please sign in to comment.