Skip to content

Commit

Permalink
private map prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Distortions81 committed Dec 23, 2023
1 parent cc3de0c commit bf38c1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions constants/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const (
RoleListFile = "../RoleList.dat"
VoteFile = "votes.dat"
MembersPrefix = "M"
PrivatePrefix = "P"
RegularsPrefix = "R"
ArchiveFolderSuffix = " maps"
TempSaveName = "softmod.tmp"
Expand Down
4 changes: 3 additions & 1 deletion fact/factConfGen.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func GenerateFactorioConfig() bool {
constants.ServSettingsName

var servName string
if cfg.Local.Options.MembersOnly || cfg.Local.Options.RegularsOnly {
if cfg.Local.Options.CustomWhitelist {
cfg.ServerPrefix = constants.PrivatePrefix
} else if cfg.Local.Options.MembersOnly || cfg.Local.Options.RegularsOnly {
if cfg.Local.Options.RegularsOnly {
cfg.ServerPrefix = constants.RegularsPrefix
} else {
Expand Down

0 comments on commit bf38c1d

Please sign in to comment.