Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4

This commit is contained in:
Florian Nücke 2016-06-25 14:27:09 +02:00
commit 222a96a792

View File

@ -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.")