mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-24 04:50:30 -04:00
Merge pull request #109 from koiNoCirculation/fix_sof_crash
Fix sof crash
This commit is contained in:
commit
d8cc5f586d
@ -260,6 +260,9 @@ private class Network private(private val data: mutable.Map[String, Network.Vert
|
||||
addedNode.onConnect(addedNode)
|
||||
val visibleNodes = nodes.filter(_.reachability == Visibility.Network)
|
||||
visibleNodes.foreach(node => connects += ((node, nodes)))
|
||||
} else if(addedNode.network == oldNode.data.network) {
|
||||
//well this causes stack overflow
|
||||
false
|
||||
}
|
||||
else {
|
||||
val otherNetwork = addedNode.network.asInstanceOf[Network.Wrapper].network
|
||||
|
Loading…
x
Reference in New Issue
Block a user