mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8.9
This commit is contained in:
commit
6d681464c6
@ -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