Skip to content

Commit b1eca21

Browse files
committed
Modified server-start save path variable for compatibility
Modified save path variable for compatibility
1 parent e47b568 commit b1eca21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func initFactorio() *FactorioServer {
5353
func (f *FactorioServer) Run() error {
5454
var err error
5555

56-
args := []string{"--start-server", config.FactorioSavesDir + "/" + f.Savefile,
56+
args := []string{"--start-server", filepath.Join(config.FactorioSavesDir, f.Savefile),
5757
"--latency-ms", strconv.Itoa(f.Latency),
5858
"--autosave-interval", strconv.Itoa(f.AutosaveInterval),
5959
"--autosave-slots", strconv.Itoa(f.AutosaveSlots),

0 commit comments

Comments
 (0)