Fixed Issue with Fluid Tunnels not updating each theres state.
This commit is contained in:
parent
5c2cf0e1e3
commit
87fa34042d
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue