mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-25 00:23:12 +09:00
Autosave loading fixed again
This commit is contained in:
1 parent
e21332591f
commit
36bfd6450b
1 file changed
+1
-4
@@ -192,7 +192,7 @@ write-data=__PATH__executable__/../../../instances/" + instance + "\r\n\
|
|||||||
var serverprocess = child_process.spawn(
|
var serverprocess = child_process.spawn(
|
||||||
'./' + config.factorioDirectory + '/bin/x64/factorio', [
|
'./' + config.factorioDirectory + '/bin/x64/factorio', [
|
||||||
'-c', instancedirectory + '/config.ini',
|
'-c', instancedirectory + '/config.ini',
|
||||||
'--start-server', instancedirectory + '/saves/' + latestSave,
|
'--start-server', latestSave.file,
|
||||||
'--rcon-port', instanceconfig.clientPort,
|
'--rcon-port', instanceconfig.clientPort,
|
||||||
'--rcon-password', instanceconfig.clientPassword,
|
'--rcon-password', instanceconfig.clientPassword,
|
||||||
'--server-settings', instancedirectory + '/server-settings.json',
|
'--server-settings', instancedirectory + '/server-settings.json',
|
||||||
@@ -636,9 +636,6 @@ function getNewestFile(dir, files, callback) {
|
|||||||
if (!files || (files && files.length === 0)) {
|
if (!files || (files && files.length === 0)) {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
if (files.length === 1) {
|
|
||||||
callback(files[0]);
|
|
||||||
}
|
|
||||||
var newest = { file: files[0] };
|
var newest = { file: files[0] };
|
||||||
var checked = 0;
|
var checked = 0;
|
||||||
fs.stat(dir + newest.file, function(err, stats) {
|
fs.stat(dir + newest.file, function(err, stats) {
|
||||||
|
|||||||
Reference in new issue
Block a user