Fix some CME's in the powernet, and add a basic profiler to it, might add a command or someway to use this without enabling it in the code
This commit is contained in:
parent
796df6c055
commit
871edce960
3 changed files with 30 additions and 4 deletions
|
@ -357,7 +357,10 @@ public abstract class CableMultipart extends Multipart
|
|||
network = new TRPowerNet(getCableType());
|
||||
network.addElement(this);
|
||||
}
|
||||
network.endpoints.clear();
|
||||
for (Iterator<TRPowerNet.EnergyHandler> it = network.endpoints.iterator(); it.hasNext(); ) {
|
||||
it.next();
|
||||
it.remove();
|
||||
}
|
||||
for (EnumFacing dir : EnumFacing.VALUES) {
|
||||
TileEntity te = getNeighbourTile(dir);
|
||||
if (te != null && te instanceof IEnergyInterfaceTile) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue