Cleanup
This commit is contained in:
parent
da661af41c
commit
c61e4c116b
2 changed files with 4 additions and 3 deletions
|
@ -84,6 +84,7 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
|
||||||
for(Entry<IGridTransmitter<A, N>, EnumSet<ForgeDirection>> entry : changedAcceptors.entrySet())
|
for(Entry<IGridTransmitter<A, N>, EnumSet<ForgeDirection>> entry : changedAcceptors.entrySet())
|
||||||
{
|
{
|
||||||
IGridTransmitter<A, N> transmitter = entry.getKey();
|
IGridTransmitter<A, N> transmitter = entry.getKey();
|
||||||
|
|
||||||
if(transmitter.isValid())
|
if(transmitter.isValid())
|
||||||
{
|
{
|
||||||
EnumSet<ForgeDirection> directionsChanged = entry.getValue();
|
EnumSet<ForgeDirection> directionsChanged = entry.getValue();
|
||||||
|
@ -128,8 +129,7 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
|
||||||
acceptorDirections.remove(acceptorCoord);
|
acceptorDirections.remove(acceptorCoord);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
{
|
|
||||||
possibleAcceptors.remove(acceptorCoord);
|
possibleAcceptors.remove(acceptorCoord);
|
||||||
acceptorDirections.remove(acceptorCoord);
|
acceptorDirections.remove(acceptorCoord);
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,6 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public abstract void absorbBuffer(IGridTransmitter<A, N> transmitter);
|
public abstract void absorbBuffer(IGridTransmitter<A, N> transmitter);
|
||||||
|
|
||||||
public abstract void clampBuffer();
|
public abstract void clampBuffer();
|
||||||
|
|
|
@ -108,6 +108,7 @@ public class TransmitterNetworkRegistry
|
||||||
{
|
{
|
||||||
logger.debug("Dealing with " + invalidTransmitters.size() + " invalid Transmitters");
|
logger.debug("Dealing with " + invalidTransmitters.size() + " invalid Transmitters");
|
||||||
}
|
}
|
||||||
|
|
||||||
for(IGridTransmitter invalid : invalidTransmitters)
|
for(IGridTransmitter invalid : invalidTransmitters)
|
||||||
{
|
{
|
||||||
if(!invalid.isOrphan())
|
if(!invalid.isOrphan())
|
||||||
|
@ -119,6 +120,7 @@ public class TransmitterNetworkRegistry
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
invalidTransmitters.clear();
|
invalidTransmitters.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue