Changed to using the real factorio port

This commit is contained in:
bbassie committed 2021-11-04 21:29:53 +01:00
1 parent 83b720eade
commit f930ed36a0
4 files changed
+9 -4

No files matched your search

+4 -1
View File
@@ -260,7 +260,9 @@ class Instance extends libLink.Link {
notifyStatus(status) {
this._status = status;
libLink.messages.instanceStatusChanged.send(this, {
instance_id: this.id, status,
instance_id: this.id,
status,
game_port: this.server ? this.server.gamePort : this.config.get("factorio.game_port") || null,
});
}
@@ -1297,6 +1299,7 @@ class Slave extends libLink.Link {
libLink.messages.instanceStatusChanged.send(this, {
instance_id,
status: instanceConnection ? instanceConnection.status : "stopped",
game_port: null,
});
// save a copy of the instance config