diff --git a/parts/p2p/PartP2PTunnel.java b/parts/p2p/PartP2PTunnel.java index 65f9732b..b00f56df 100644 --- a/parts/p2p/PartP2PTunnel.java +++ b/parts/p2p/PartP2PTunnel.java @@ -1,5 +1,6 @@ package appeng.parts.p2p; +import java.util.ArrayList; import java.util.Collection; import net.minecraft.client.renderer.RenderBlocks; @@ -265,7 +266,9 @@ public class PartP2PTunnel extends PartBasicState public TunnelCollection getOutputs() throws GridAccessException { - return (TunnelCollection) proxy.getP2P().getOutputs( freq, getClass() ); + if ( proxy.isActive() ) + return (TunnelCollection) proxy.getP2P().getOutputs( freq, getClass() ); + return new TunnelCollection( new ArrayList(), getClass() ); } public void onChange()