mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 01:39:36 -04:00
Fixed mountables not being in a network yet screwing with the racks reconnect logic, closes #1757.
This commit is contained in:
parent
9535cad412
commit
ce940696cb
@ -105,8 +105,10 @@ class Rack extends traits.PowerAcceptor with traits.Hub with traits.PowerBalance
|
|||||||
mapping(0) match {
|
mapping(0) match {
|
||||||
case Some(side) if toGlobal(side) == plugSide =>
|
case Some(side) if toGlobal(side) == plugSide =>
|
||||||
val mountable = getMountable(slot)
|
val mountable = getMountable(slot)
|
||||||
if (mountable != null && mountable.node != null && node != mountable.node) {
|
val busNode = sidedNode(plugSide)
|
||||||
mountable.node.connect(sidedNode(plugSide))
|
if (busNode != null && mountable != null && mountable.node != null && busNode != mountable.node) {
|
||||||
|
api.Network.joinNewNetwork(mountable.node)
|
||||||
|
busNode.connect(mountable.node)
|
||||||
}
|
}
|
||||||
case _ => // Not connected to this side.
|
case _ => // Not connected to this side.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user