anchor.diff:  
   		var/datum/powernet/PN = powernets[netnum]
   		var/datum/powernet/TPN = powernets[M.netnum]
  -
  -		PN.merge_powernets(TPN)
  -
  -	for(var/obj/machinery/power/apc/N in loc)
  +		var/kingNetnum = netnum
  +		if(PN.cables.len + PN.nodes.len < TPN.cables.len + TPN.nodes.len)
  +			kingNetnum = M.netnum
  +			var/datum/powernet/temp = PN
  +			PN = TPN
  +			TPN = temp
  +
  +		TPN.nodes -= M
  +		PN.nodes += M
  +		M.netnum = kingNetnum
  +		M.powernet = powernets[M.netnum]
  +	for(var/obj/machinery/power/apc/N in TB)
   		var/obj/machinery/power/M
   		M = N.terminal
   
  
positive.code: 			netnum = C.netnum
  			PN.cables += src
  			continue
  
  		var/datum/powernet/PN = powernets[netnum]
  		var/datum/powernet/TPN = powernets[C.netnum]
  
  		PN.merge_powernets(TPN)
  
  	for(var/obj/machinery/power/M in loc)
  
  		if(M.netnum < 0)
  			continue
  
negative.code: 			if(TC.netnum != netnum)
  				var/datum/powernet/PN = powernets[netnum]
  				var/datum/powernet/TPN = powernets[TC.netnum]
  				var/kingNetnum = netnum
  				if(PN.cables.len + PN.nodes.len < TPN.cables.len + TPN.nodes.len)
  					kingNetnum = TC.netnum
  					var/datum/powernet/temp = PN
  					PN = TPN
  					TPN = temp
  				for(var/obj/cable/C in TPN.cables)
  					TPN.cables -= C
  					PN.cables += C
  					C.netnum = kingNetnum
  				for(var/obj/machinery/power/M in TPN.nodes)
  					if(M.netnum < 0)		// APCs have netnum=-1 so they don't count as network nodes directly
  						continue
  					TPN.nodes -= M
  					PN.nodes += M
  					M.netnum = kingNetnum
  					M.powernet = powernets[M.netnum]
  				TC.netnum = kingNetnum
  				TPN.cables -= TC
  				PN.cables += TC
  	for(var/obj/machinery/power/M in TB)
  		if(!netnum)
  			if(!M.netnum)
  				continue
  			else
  				netnum = M.netnum
  				var/datum/powernet/PN = powernets[netnum]
  				PN.nodes += src
  
  /obj/cable/proc/mergeConnectedNetworksOnTurf()
  	var/turf/TB
  	TB = loc
  
  	for(var/obj/cable/C in TB)
  		if(C == src)
  			continue
  		if(netnum == 0)
  