1
0
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:
Jonathan Coates
2024-02-24 14:55:22 +00:00
parent 2d11b51c62
commit 31aaf46d09
3 changed files with 17 additions and 8 deletions

View File

@@ -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);
}
}