mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 23:53:13 +09:00
Scenario loading has big issues with paths, this is a bandaid
This commit is contained in:
1 parent
081d9a5bea
commit
12a0ebf8d1
1 file changed
+1
-1
@@ -31,7 +31,7 @@ module.exports = class remoteCommands {
|
|||||||
messageInterface(`Loading `/*${scenarios[i]}*/+`${fileName}`);
|
messageInterface(`Loading `/*${scenarios[i]}*/+`${fileName}`);
|
||||||
let code = await clusterTools.getLua(/*path.join(scenPath, */fileName/*)*/, false);
|
let code = await clusterTools.getLua(/*path.join(scenPath, */fileName/*)*/, false);
|
||||||
// trim away external path from filenames
|
// trim away external path from filenames
|
||||||
fileName = fileName.replace("scenarios\\factoriommoscenarios\\", "");
|
fileName = fileName.replace("scenarios\\factoriommoscenarios\\", "").replace("scenarios/factoriommoscenarios", "");
|
||||||
files[fileName.split(".")[0]] = code;
|
files[fileName.split(".")[0]] = code;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user