This commit is contained in:
Aidan C. Brady 2015-04-12 17:19:32 -04:00
parent da661af41c
commit c61e4c116b
2 changed files with 4 additions and 3 deletions

View file

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

View file

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