Skip to content

Commit

Permalink
change mod update message for no players online
Browse files Browse the repository at this point in the history
  • Loading branch information
Distortions81 committed Jan 20, 2025
1 parent 92dc382 commit c7a6c1d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modupdate/modUpdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ func UpdateMods(doReport bool) {
}
}
if buf != "" {
fact.CMS(cfg.Local.Channel.ChatChannel, "Some Factorio mods were updated, and will take effect on the next reboot (when server is empty)")
if fact.NumPlayers > 0 {
fact.CMS(cfg.Local.Channel.ChatChannel, "Factorio mods were updated, and will take effect on the next reboot (when server is empty)")
} else {
fact.CMS(cfg.Local.Channel.ChatChannel, "Factorio mods were updated, rebooting.")
}
fact.QueueFactReboot = true
} else if doReport {
fact.CMS(cfg.Local.Channel.ChatChannel, "All game mods are up-to-date.")
Expand Down

0 comments on commit c7a6c1d

Please sign in to comment.