Should fix the NPE in updateTransmitterOnSide.
This commit is contained in:
parent
75b41170d3
commit
c23aafee9f
1 changed files with 7 additions and 6 deletions
|
@ -35,8 +35,6 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
|
||||||
|
|
||||||
protected Range4D packetRange = null;
|
protected Range4D packetRange = null;
|
||||||
|
|
||||||
protected int ticksSinceCreate = 0;
|
|
||||||
|
|
||||||
protected int capacity = 0;
|
protected int capacity = 0;
|
||||||
protected double meanCapacity = 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())
|
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())
|
||||||
|
{
|
||||||
EnumSet<ForgeDirection> directionsChanged = entry.getValue();
|
EnumSet<ForgeDirection> directionsChanged = entry.getValue();
|
||||||
|
|
||||||
for(ForgeDirection side : directionsChanged)
|
for(ForgeDirection side : directionsChanged)
|
||||||
|
@ -93,6 +93,7 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
|
||||||
updateTransmitterOnSide(transmitter, side);
|
updateTransmitterOnSide(transmitter, side);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
changedAcceptors.clear();
|
changedAcceptors.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue