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
+5 -9
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 ))
{
for (PartP2PTunnel p : outputs.values())
p.onChange(); p.onChange();
}
else PartP2PTunnel in = inputs.get( freq );
{ if ( in != null )
for (PartP2PTunnel p : inputs.values()) in.onChange();
p.onChange();
}
} }
public TunnelCollection<PartP2PTunnel> getOutputs(long freq, Class<? extends PartP2PTunnel> c) public TunnelCollection<PartP2PTunnel> getOutputs(long freq, Class<? extends PartP2PTunnel> c)