[1.1.89+] disconnect_neighbour on power switches
Posted: Mon Oct 23, 2023 9:11 am
In 1.1.89, LuaEntity::copper_connection_definitions (support for distinguishing between left and right side of a power switch) was added but I don't know if it relates here:
Using disconnect_neighbour on an electric pole which is connected to the right side of a power switch does not work (WireConnectionDefinition.target_wire_id = 1).
However using disconnect_neighbour on the power switch (WireConnectionDefinition.source_wire_id = 1 and WireConnectionDefinition.target_wire_id = 0) works.
Using disconnect_neighbour on an electric pole which is connected to the right side of a power switch does not work (WireConnectionDefinition.target_wire_id = 1).
However using disconnect_neighbour on the power switch (WireConnectionDefinition.source_wire_id = 1 and WireConnectionDefinition.target_wire_id = 0) works.