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)
|
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)
|
||||||
|
|
Loading…
Reference in a new issue