From acae79790c48a905dfd370f3de340ba7a7bde070 Mon Sep 17 00:00:00 2001 From: oorzkws <65210810+oorzkws@users.noreply.github.com> Date: Sun, 28 Dec 2025 12:31:34 -0700 Subject: [PATCH 1/3] Fix missing unlocks from steam-power Modifying the same table we iterate led to items being skipped --- changelog.txt | 5 +++++ data-updates.lua | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 9993320..3f3c35d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 3.2.17 +Date: ??? + Bugfixes: + - Fixed missing recipes due to iterating a table while modifying it +--------------------------------------------------------------------------------------------------- Version: 3.2.16 Date: 2025-12-21 Changes: diff --git a/data-updates.lua b/data-updates.lua index 8546d36..4dd1af1 100644 --- a/data-updates.lua +++ b/data-updates.lua @@ -147,7 +147,7 @@ RECIPE("soot-to-aluminium"):add_unlock("mining-with-fluid") -- get rid of the steam power tech TECHNOLOGY("steam-power"):set_fields {hidden = true, unit = data.raw["technology"]["mining-productivity-4"].unit} data.raw.technology["steam-power"].research_trigger = nil -for e, effect in pairs(data.raw["technology"]["steam-power"].effects) do +for _, effect in pairs(table.deepcopy(data.raw["technology"]["steam-power"].effects)) do if effect.type == "unlock-recipe" then RECIPE(effect.recipe):remove_unlock("steam-power"):set_fields {enabled = true} else From 45d5ae2e5931df60a5380195bc8b4ed0b842a71e Mon Sep 17 00:00:00 2001 From: protocol-1903 <67478786+protocol-1903@users.noreply.github.com> Date: Mon, 29 Dec 2025 00:09:26 -0700 Subject: [PATCH 2/3] datestamp changelog --- changelog.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 3f3c35d..080867b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,7 +5,7 @@ Date: ??? - Fixed missing recipes due to iterating a table while modifying it --------------------------------------------------------------------------------------------------- Version: 3.2.16 -Date: 2025-12-21 +Date: 2025-12-29 Changes: - Moved pYHardMode compat to hardmode - Fixed Creature Chamber TURD path 1 Phadai recipe requiring more items than the basic recipe From 24915ee8ef299fbd802a8b981d4bd05384b17495 Mon Sep 17 00:00:00 2001 From: protocol-1903 <67478786+protocol-1903@users.noreply.github.com> Date: Mon, 29 Dec 2025 00:12:16 -0700 Subject: [PATCH 3/3] fix mismatched changelog --- changelog.txt | 4 ++-- info.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 080867b..83cb2c4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,11 +1,11 @@ --------------------------------------------------------------------------------------------------- Version: 3.2.17 -Date: ??? +Date: 2025-12-29 Bugfixes: - Fixed missing recipes due to iterating a table while modifying it --------------------------------------------------------------------------------------------------- Version: 3.2.16 -Date: 2025-12-29 +Date: 2025-12-21 Changes: - Moved pYHardMode compat to hardmode - Fixed Creature Chamber TURD path 1 Phadai recipe requiring more items than the basic recipe diff --git a/info.json b/info.json index 0c2e01a..0f7dd56 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "PyBlock", - "version": "3.2.16", + "version": "3.2.17", "factorio_version": "2.0", "title": "PyBlock", "author": "KingArthur",