Fixed issue with Redstone Tunnels not updating properly.
This commit is contained in:
Vendored
+6
-10
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user