[2.0.72] set_blueprint_entities makes the cutted entities forget their external wire connections
Posted: Sat Nov 01, 2025 8:29 pm
Relating to https://www.factorio.com/blog/post/fff-402. When using set_blueprint_entities, even without modifying anything, it forgets those wire connectiong going to external entities.
Can we have the possibility to read and preserve those outgoing connections when using the cut tool?
Code: Select all
script.on_event(defines.events.on_player_setup_blueprint, function(event)
local item = event.record or event.stack
item.set_blueprint_entities(item.get_blueprint_entities())
end)