Fixed Bug: #0436 - Fluid Tunnels don't require Power
Fixed bug where fluid tunnels would not function properly.
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user