Use detected Factorio version

Remove Factorio_version from the config file and use the detected
version of Factorio instead.
This commit is contained in:
Hornwitser committed 2019-11-21 22:25:11 +01:00
1 parent 27fc68da0f
commit fcae3ef0c1
5 files changed
+20 -7

No files matched your search

+7
View File
@@ -443,6 +443,13 @@ class FactorioServer extends events.EventEmitter {
this._state = "init";
}
/**
* The version of Factorio that was detected
*/
get version() {
return this._version;
}
_attachStdio() {
this._server.stdout.on('data', chunk => { this._stdout.data(chunk); });
this._server.stdout.on('close', () => { this._stdout.end(); });