Make FactorioServer.exampleSettings static

Convert the exampleSettings method to be a static method.
This commit is contained in:
Hornwitser committed 2019-11-30 00:08:10 +01:00
1 parent 039b41d3e6
commit a3eb39712c
3 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ class Instance {
// save instance config
await fs.outputFile(instance.path("config.json"), JSON.stringify(instanceConfig, null, 4));
let serverSettings = await instance.server.exampleSettings();
let serverSettings = await factorio.FactorioServer.exampleSettings(path.join(factorioDir, "data"));
let gameName = "Clusterio instance: " + instance.name;
if (options.username) {
gameName = options.username + "'s clusterio " + instance.name;