Skip to content

Commit c145a8a

Browse files
committed
Starting server saves server-settings.json file to correct position
1 parent 4190ecc commit c145a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/factorio_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (f *FactorioServer) Run() error {
102102
if err != nil {
103103
log.Println("Failed to marshal FactorioServerSettings: ", err)
104104
} else {
105-
ioutil.WriteFile(filepath.Join(config.FactorioDir, "server-settings.json"), data, 0644)
105+
ioutil.WriteFile(filepath.Join(config.FactorioConfigDir, config.SettingsFile), data, 0644)
106106
}
107107

108108
args := []string{

0 commit comments

Comments
 (0)