[1.1.89+] disconnect_neighbour on power switches

This subforum contains all the issues which we already resolved.
Post Reply
Natha
Fast Inserter
Fast Inserter
Posts: 185
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

[1.1.89+] disconnect_neighbour on power switches

Post by Natha »

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.

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2252
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [1.1.89+] disconnect_neighbour on power switches

Post by boskid »

Thanks for the report, issue is now fixed for 1.1.95. From what i was able to observe when requesting electric pole to disconnect from right side of a power switch, left side was being disconnected instead.

Post Reply

Return to “Resolved Problems and Bugs”