mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 19:56:17 -04:00
Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4
This commit is contained in:
commit
222a96a792
@ -67,6 +67,9 @@ private class Network private(private val data: mutable.Map[String, Network.Vert
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
def connect(nodeA: MutableNode, nodeB: MutableNode) = {
|
||||
if (nodeA == null) throw new NullPointerException("nodeA")
|
||||
if (nodeB == null) throw new NullPointerException("nodeB")
|
||||
|
||||
if (nodeA == nodeB) throw new IllegalArgumentException(
|
||||
"Cannot connect a node to itself.")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user