Fixes power runtime

This commit is contained in:
GinjaNinja32
2015-01-22 15:03:54 +00:00
parent e8aeb1b496
commit c97b54fe56

View File

@@ -294,6 +294,8 @@
for(var/obj/structure/cable/Cable in net2.cables) //merge cables
net1.add_cable(Cable)
if(!net2) return net1
for(var/obj/machinery/power/Node in net2.nodes) //merge power machines
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