Merge pull request #7916 from GinjaNinja32/runtime

Fixes power runtime
This commit is contained in:
PsiOmegaDelta
2015-01-22 17:47:05 +01:00

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