Should fix the NPE in updateTransmitterOnSide.

This commit is contained in:
Ben Spiers 2015-04-12 00:19:49 +01:00
parent 75b41170d3
commit c23aafee9f

View file

@ -35,8 +35,6 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
protected Range4D packetRange = null;
protected int ticksSinceCreate = 0;
protected int capacity = 0;
protected double meanCapacity = 0;
@ -86,6 +84,8 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
for(Entry<IGridTransmitter<A, N>, EnumSet<ForgeDirection>> entry : changedAcceptors.entrySet())
{
IGridTransmitter<A, N> transmitter = entry.getKey();
if(transmitter.isValid())
{
EnumSet<ForgeDirection> directionsChanged = entry.getValue();
for(ForgeDirection side : directionsChanged)
@ -93,6 +93,7 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
updateTransmitterOnSide(transmitter, side);
}
}
}
changedAcceptors.clear();
}