mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-20 23:34:48 +00:00
Deprecate WiredNetwork
We don't actually need this to be in the public API.
This commit is contained in:
@@ -264,8 +264,8 @@ public class CableBlockEntity extends BlockEntity {
|
||||
if (CableBlock.canConnectIn(state, facing)) {
|
||||
// If we can connect to it then do so
|
||||
this.node.connectTo(node);
|
||||
} else if (this.node.getNetwork() == node.getNetwork()) {
|
||||
// Otherwise if we're on the same network then attempt to void it.
|
||||
} else {
|
||||
// Otherwise break the connectoin.
|
||||
this.node.disconnectFrom(node);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user