From 227ac87018f891b2fd52f34ba387aae92c091733 Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Wed, 29 Nov 2017 09:01:27 +0100 Subject: [PATCH] housekeeping --- client.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client.js b/client.js index a3c5084b..03fe5789 100644 --- a/client.js +++ b/client.js @@ -220,7 +220,8 @@ if (!command || command == "help" || command == "--help") { read-data=__PATH__executable__/../../data\r\n\ write-data=__PATH__executable__/../../../instances/" + instance + "\r\n\ "); - + + // this line is probably not needed anymore but Im not gonna remove it fs.copySync('sharedMods', instancedirectory + "/mods"); let instconf = { "factorioPort": process.env.FACTORIOPORT | Math.floor(Math.random() * 65535), @@ -244,7 +245,6 @@ write-data=__PATH__executable__/../../../instances/" + instance + "\r\n\ "max_players": "20", "visibility": config.visibility, "username": config.username, - "password": config.password, "token": config.usertoken, "game_password": config.game_password, "verify_user_identity": config.verify_user_identity, @@ -284,9 +284,6 @@ write-data=__PATH__executable__/../../../instances/" + instance + "\r\n\ fs.unlinkSync(instancedirectory + "/saves/" + savefiles[i]); } } - /*setInterval(function(){ - console.log(process.env); - },5000);*/ console.log("Deleting logs"); // clean old log file to avoid crash // file exists, delete so we don't get in trouble