From 4c5ab21c647b17cf1eaa1e0801cd9dff5ea3277d Mon Sep 17 00:00:00 2001 From: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com> Date: Sun, 18 May 2025 21:37:46 +0100 Subject: [PATCH] Fix version comparison --- packages/lib/src/factorio/exchange_string.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib/src/factorio/exchange_string.ts b/packages/lib/src/factorio/exchange_string.ts index 8af4157f..e5c2e7b1 100644 --- a/packages/lib/src/factorio/exchange_string.ts +++ b/packages/lib/src/factorio/exchange_string.ts @@ -426,7 +426,7 @@ export function readMapExchangeString(exchangeString: string) { try { const version = readVersion(state); - state.v2 = version >= [2, 0, 0, 0]; + state.v2 = version[0] >= 2; data = { version: version, unknown: readUInt8(state),