Fixed Bug: #0436 - Fluid Tunnels don't require Power

Fixed bug where fluid tunnels would not function properly.
This commit is contained in:
AlgorithmX2
2014-05-18 14:44:58 -05:00
parent 6f96ae6074
commit c35faabfd8
+4 -1
View File
@@ -92,7 +92,7 @@ public class PartP2PLiquids extends PartP2PTunnel<PartP2PLiquids> implements IFl
{ {
for (PartP2PLiquids l : getOutputs()) for (PartP2PLiquids l : getOutputs())
{ {
IFluidHandler targ = getTarget(); IFluidHandler targ = l.getTarget();
if ( targ != null ) if ( targ != null )
{ {
if ( targ.canFill( side.getOpposite(), input ) ) if ( targ.canFill( side.getOpposite(), input ) )
@@ -128,6 +128,9 @@ public class PartP2PLiquids extends PartP2PTunnel<PartP2PLiquids> implements IFl
IFluidHandler getTarget() IFluidHandler getTarget()
{ {
if ( !proxy.isActive() )
return null;
if ( cachedTank != null ) if ( cachedTank != null )
return cachedTank; return cachedTank;