mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 04:02:31 +00:00
@@ -294,6 +294,8 @@
|
|||||||
for(var/obj/structure/cable/Cable in net2.cables) //merge cables
|
for(var/obj/structure/cable/Cable in net2.cables) //merge cables
|
||||||
net1.add_cable(Cable)
|
net1.add_cable(Cable)
|
||||||
|
|
||||||
|
if(!net2) return net1
|
||||||
|
|
||||||
for(var/obj/machinery/power/Node in net2.nodes) //merge power machines
|
for(var/obj/machinery/power/Node in net2.nodes) //merge power machines
|
||||||
if(!Node.connect_to_network())
|
if(!Node.connect_to_network())
|
||||||
Node.disconnect_from_network() //if somehow we can't connect the machine to the new powernet, disconnect it from the old nonetheless
|
Node.disconnect_from_network() //if somehow we can't connect the machine to the new powernet, disconnect it from the old nonetheless
|
||||||
|
|||||||
Reference in New Issue
Block a user