Fixed Issue with Fluid Tunnels not updating each theres state.

This commit is contained in:
AlgorithmX2 2014-01-30 21:06:30 -06:00
parent 5c2cf0e1e3
commit 87fa34042d

View file

@ -105,11 +105,24 @@ public class PartP2PLiquids extends PartP2PTunnel<PartP2PLiquids> implements IFl
return outs; return outs;
} }
public void onNeighborBlockChange() @Override
public void onNeighborChanged()
{ {
cachedTank = null; cachedTank = null;
if ( output )
{
PartP2PLiquids in = getInput();
if ( in != null )
in.onChange();
}
}; };
@Override
public void onChange()
{
cachedTank = null;
}
IFluidHandler getTarget() IFluidHandler getTarget()
{ {
if ( cachedTank != null ) if ( cachedTank != null )