mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 09:46:53 -04:00
Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8
This commit is contained in:
commit
29f55d8a04
@ -253,10 +253,13 @@ private class Network private(private val data: mutable.Map[String, Network.Vert
|
||||
// editing stuff or using mods to clone blocks (e.g. WorldEdit).
|
||||
otherNetwork.data.filter(entry => data.contains(entry._1)).toArray.foreach {
|
||||
case (address, node: Network.Vertex) =>
|
||||
val neighbors = node.data.neighbors.toArray // Copy to be on the safe side.
|
||||
val neighbors = node.edges.map(_.other(node))
|
||||
node.data.remove()
|
||||
node.data.address = java.util.UUID.randomUUID().toString
|
||||
neighbors.foreach(_.connect(node.data))
|
||||
if (neighbors.isEmpty)
|
||||
otherNetwork.addNew(node.data)
|
||||
else
|
||||
neighbors.foreach(_.data.connect(node.data))
|
||||
}
|
||||
|
||||
if (addedNode.reachability == Visibility.Neighbors)
|
||||
|
Loading…
x
Reference in New Issue
Block a user