Fixed issue with Redstone Tunnels not updating properly.

This commit is contained in:
AlgorithmX2 2014-01-26 00:49:06 -06:00
parent 6ecb969801
commit bea039c7b5

View file

@ -125,16 +125,12 @@ public class P2PCache implements IGridCache
private void updateTunnel(long freq, boolean updateOutputs) private void updateTunnel(long freq, boolean updateOutputs)
{ {
if ( updateOutputs ) for (PartP2PTunnel p : outputs.get( freq ))
{ p.onChange();
for (PartP2PTunnel p : outputs.values())
p.onChange(); PartP2PTunnel in = inputs.get( freq );
} if ( in != null )
else in.onChange();
{
for (PartP2PTunnel p : inputs.values())
p.onChange();
}
} }
public TunnelCollection<PartP2PTunnel> getOutputs(long freq, Class<? extends PartP2PTunnel> c) public TunnelCollection<PartP2PTunnel> getOutputs(long freq, Class<? extends PartP2PTunnel> c)