Some more improvements to the power net.
This commit is contained in:
parent
332fe1be48
commit
056eff09b2
5 changed files with 66 additions and 8 deletions
|
@ -410,13 +410,13 @@ public abstract class CableMultipart extends Multipart
|
|||
}
|
||||
}
|
||||
if (network == null) {
|
||||
network = new TRPowerNet(getCableType());
|
||||
network = new TRPowerNet(getCableType(), world);
|
||||
network.addElement(this);
|
||||
}
|
||||
for (EnumFacing dir : EnumFacing.VALUES) {
|
||||
TileEntity te = getNeighbourTile(dir);
|
||||
if (te instanceof IEnergyInterfaceTile) {
|
||||
network.addConnection((IEnergyInterfaceTile) te, dir.getOpposite());
|
||||
network.addConnection((IEnergyInterfaceTile) te, dir);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue