mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 09:18:05 -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 {
|
||||
case Some(side) if toGlobal(side) == plugSide =>
|
||||
val mountable = getMountable(slot)
|
||||
if (mountable != null && mountable.node != null && node != mountable.node) {
|
||||
mountable.node.connect(sidedNode(plugSide))
|
||||
val busNode = 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.
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user