diff --git a/changelog.txt b/changelog.txt index 9993320..83cb2c4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 3.2.17 +Date: 2025-12-29 + 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 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",