From 5372e0c7e94a5f6e5a7365f8e232162c7bb4dec5 Mon Sep 17 00:00:00 2001 From: Kirk McDonald Date: Wed, 16 Oct 2024 07:44:21 -0700 Subject: [PATCH] Add more legacy URL support. --- init.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/init.js b/init.js index 3c1b3eb..2d097ca 100644 --- a/init.js +++ b/init.js @@ -39,11 +39,18 @@ let OIL_EXCLUSION = new Map([ ]) function fixLegacySettings(settings) { - if ((settings.has("min") || settings.has("furnace")) && !settings.has("buildings")) { + if ((settings.has("use_3") || settings.has("min") || settings.has("furnace")) && !settings.has("buildings")) { let parts = [] if (settings.has("min")) { - parts.push("assembling-machine-" + settings.get("min")) + let n = settings.get("min") + if (n === "4") { + n = "3" + } + parts.push("assembling-machine-" + n) settings.delete("min") + } else if (settings.has("use_3")) { + parts.push("assembling-machine-3") + settings.delete("use_3") } if (settings.has("furnace")) { parts.push(settings.get("furnace"))