From a1a9f4acd316f45cb8056c68b33c990f46579556 Mon Sep 17 00:00:00 2001 From: PreLeyZero Date: Sun, 19 Jun 2022 10:55:26 +0200 Subject: [PATCH] bugfix for IND2 --- changelog.txt | 5 +++++ scripts/upgrades.lua | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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