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
+5 -2
View File
@@ -24,7 +24,7 @@ public class PartP2PLiquids extends PartP2PTunnel<PartP2PLiquids> implements IFl
private final static FluidTankInfo[] activeTank = new FluidTankInfo[] { new FluidTankInfo( null, 10000 ) };
private final static FluidTankInfo[] inactiveTank = new FluidTankInfo[] { new FluidTankInfo( null, 0 ) };
public TunnelType getTunnelType()
{
return TunnelType.FLUID;
@@ -92,7 +92,7 @@ public class PartP2PLiquids extends PartP2PTunnel<PartP2PLiquids> implements IFl
{
for (PartP2PLiquids l : getOutputs())
{
IFluidHandler targ = getTarget();
IFluidHandler targ = l.getTarget();
if ( targ != null )
{
if ( targ.canFill( side.getOpposite(), input ) )
@@ -128,6 +128,9 @@ public class PartP2PLiquids extends PartP2PTunnel<PartP2PLiquids> implements IFl
IFluidHandler getTarget()
{
if ( !proxy.isActive() )
return null;
if ( cachedTank != null )
return cachedTank;