From 7cef5528b308963e3a63eec632e4447f667c2f08 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Mon, 3 May 2021 21:38:23 +0200 Subject: [PATCH] Check for 0.16 startup string Adjust the regex for detecting startup to also work with 0.16 as updateTick was called mapTick before 0.17. Note: This commit does not imply 0.16 is going to be supported by Cluestio. --- packages/lib/factorio/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib/factorio/server.js b/packages/lib/factorio/server.js index 005727b7..9ba551d3 100644 --- a/packages/lib/factorio/server.js +++ b/packages/lib/factorio/server.js @@ -375,7 +375,7 @@ const outputHeuristics = [ // Message indicating the server is done starting up { - filter: { type: "log", message: /^updateTick\(\d+\) changing state from\(CreatingGame\) to\(InGame\)$/ }, + filter: { type: "log", message: /^(update|map)Tick\(\d+\) changing state from\(CreatingGame\) to\(InGame\)$/ }, action: function() { this._notifyGameReady().catch((err) => { this.emit("error", err); }); },