Fixed issue with Redstone Tunnels not updating properly.
This commit is contained in:
parent
6ecb969801
commit
bea039c7b5
16
me/cache/P2PCache.java
vendored
16
me/cache/P2PCache.java
vendored
|
@ -125,16 +125,12 @@ public class P2PCache implements IGridCache
|
|||
|
||||
private void updateTunnel(long freq, boolean updateOutputs)
|
||||
{
|
||||
if ( updateOutputs )
|
||||
{
|
||||
for (PartP2PTunnel p : outputs.values())
|
||||
p.onChange();
|
||||
}
|
||||
else
|
||||
{
|
||||
for (PartP2PTunnel p : inputs.values())
|
||||
p.onChange();
|
||||
}
|
||||
for (PartP2PTunnel p : outputs.get( freq ))
|
||||
p.onChange();
|
||||
|
||||
PartP2PTunnel in = inputs.get( freq );
|
||||
if ( in != null )
|
||||
in.onChange();
|
||||
}
|
||||
|
||||
public TunnelCollection<PartP2PTunnel> getOutputs(long freq, Class<? extends PartP2PTunnel> c)
|
||||
|
|
Loading…
Reference in a new issue