Skip to content

Commit 7913b3e

Browse files
authored
Fix missing unlocks from steam-power (#90)
* Fix missing unlocks from steam-power Modifying the same table we iterate led to items being skipped * datestamp changelog * fix mismatched changelog
1 parent 3a0abcf commit 7913b3e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
---------------------------------------------------------------------------------------------------
2+
Version: 3.2.17
3+
Date: 2025-12-29
4+
Bugfixes:
5+
- Fixed missing recipes due to iterating a table while modifying it
6+
---------------------------------------------------------------------------------------------------
27
Version: 3.2.16
38
Date: 2025-12-21
49
Changes:

data-updates.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ RECIPE("soot-to-aluminium"):add_unlock("mining-with-fluid")
147147
-- get rid of the steam power tech
148148
TECHNOLOGY("steam-power"):set_fields {hidden = true, unit = data.raw["technology"]["mining-productivity-4"].unit}
149149
data.raw.technology["steam-power"].research_trigger = nil
150-
for e, effect in pairs(data.raw["technology"]["steam-power"].effects) do
150+
for _, effect in pairs(table.deepcopy(data.raw["technology"]["steam-power"].effects)) do
151151
if effect.type == "unlock-recipe" then
152152
RECIPE(effect.recipe):remove_unlock("steam-power"):set_fields {enabled = true}
153153
else

info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "PyBlock",
3-
"version": "3.2.16",
3+
"version": "3.2.17",
44
"factorio_version": "2.0",
55
"title": "PyBlock",
66
"author": "KingArthur",

0 commit comments

Comments
 (0)