From 37d7675ad7fdfc61dd2b897bef88d06bdd56697c Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Sun, 18 May 2014 21:36:21 -0500 Subject: [PATCH] Darn it Power tunnels need power too! --- parts/p2p/PartP2PTunnel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()