From a52f991543441befe5bbb4bc40c0d6560d705ba1 Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Tue, 3 Aug 2021 08:51:12 -0700 Subject: [PATCH] Fix backwards compatibility check for cases where AP mod is NOT loaded last. --- FactorioClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FactorioClient.py b/FactorioClient.py index a13f83bf91..0c61e50f64 100644 --- a/FactorioClient.py +++ b/FactorioClient.py @@ -243,7 +243,7 @@ async def factorio_spinup_server(ctx: FactorioContext): while not factorio_queue.empty(): msg = factorio_queue.get() factorio_server_logger.info(msg) - if "Loading mod AP-" and msg.endswith("(data.lua)"): + if "Loading mod AP-" in msg and msg.endswith("(data.lua)"): parts = msg.split() ctx.mod_version = Utils.Version(*(int(number) for number in parts[-2].split("."))) if not rcon_client and "Starting RCON interface at IP ADDR:" in msg: