diff --git a/changelog.txt b/changelog.txt index 92d4042..b756bb5 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 1.0.29 +Date: 08.06.2022 + Bugfixes: + - fix bug with industrial revolution +--------------------------------------------------------------------------------------------------- Version: 1.0.28 Date: 17.06.2022 Features: diff --git a/scripts/upgrades.lua b/scripts/upgrades.lua index 72e41d0..f581845 100644 --- a/scripts/upgrades.lua +++ b/scripts/upgrades.lua @@ -14,7 +14,11 @@ local function adjust_bounding_boxes(table_in) data.raw[v[3]][v[1]].selection_box = data.raw[v[3]][v[2]].selection_box --set fast_replaceable_group - data.raw[v[3]][v[1]].fast_replaceable_group = v[3] + if data.raw[v[3]][v[2]].fast_replaceable_group then + data.raw[v[3]][v[1]].fast_replaceable_group = data.raw[v[3]][v[2]].fast_replaceable_group + else + data.raw[v[3]][v[1]].fast_replaceable_group = v[3] + end --collision mask data.raw[v[3]][v[1]].collision_mask = data.raw[v[3]][v[2]].collision_mask