Remove dead code left over from 21d9fdf

Remove compatConfig definition after RCON is established which was left
over from 21d9fdf.
This commit is contained in:
Hornwitser committed 2020-01-04 17:34:16 +01:00
1 parent c091dc341e
commit f88e1f1d3a
1 file changed
-12
-12
View File
@@ -215,18 +215,6 @@ class Instance extends link.Link{
this.server.on('rcon-ready', () => {
console.log("Clusterio | RCON connection established");
// Temporary measure for backwards compatibility
let compatConfig = {
id: this.config.id,
unique: this.config.id,
name: this.config.name,
// FactorioServer.init may have generated a random port or password
// if they were null.
factorioPort: this.server.gamePort,
clientPort: this.server.rconPort,
clientPassword: this.server.rconPassword,
}
});
await this.server.start(saveName);