Skip to content

Commit ae95aa1

Browse files
author
Mitch Roote
authored
Merge pull request #35 from xeroiv/master
Modified server-start command for .13
2 parents 593f38e + a3e2fa4 commit ae95aa1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"os/exec"
88
"strconv"
99
"syscall"
10+
"path/filepath"
1011
)
1112

1213
type FactorioServer struct {
@@ -53,7 +54,7 @@ func initFactorio() *FactorioServer {
5354
func (f *FactorioServer) Run() error {
5455
var err error
5556

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

0 commit comments

Comments
 (0)