Wed, 27 Aug 2025 10:26:12 +0300
Lots of stuff
require"sb-util" -- in case something changes conditions or collision masks in the meantime for _, entity_type in pairs (entity_categories) do for _, base_entity in pairs (data.raw[entity_type] or {}) do local ct = data.raw["assembling-machine"]["collision-tester-"..base_entity.name] if ct then ct.collision_mask = table.deepcopy(base_entity.collision_mask) ct.collision_box = table.deepcopy(base_entity.collision_box) ct.surface_conditions = table.deepcopy(base_entity.surface_conditions) end end end