Stop pipes connecting to front of Heat Generator.
Prevents Mechanical Pipes connecting to the front (energy output) side of the Heat Generator. Currently they physically connect, leading you to assume they are transferring the lava, however they are not as this is the energy output side and it does not accept lava.
This commit is contained in:
parent
04987a5626
commit
8509ebab18
1 changed files with 4 additions and 1 deletions
|
@ -322,7 +322,7 @@ public class TileEntityHeatGenerator extends TileEntityGenerator implements IFlu
|
||||||
@Override
|
@Override
|
||||||
public boolean canFill(ForgeDirection from, Fluid fluid)
|
public boolean canFill(ForgeDirection from, Fluid fluid)
|
||||||
{
|
{
|
||||||
return fluid == FluidRegistry.LAVA;
|
return (fluid == FluidRegistry.LAVA) && (from != ForgeDirection.getOrientation(facing));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -334,6 +334,9 @@ public class TileEntityHeatGenerator extends TileEntityGenerator implements IFlu
|
||||||
@Override
|
@Override
|
||||||
public FluidTankInfo[] getTankInfo(ForgeDirection from)
|
public FluidTankInfo[] getTankInfo(ForgeDirection from)
|
||||||
{
|
{
|
||||||
|
if(from == ForgeDirection.getOrientation(facing)){
|
||||||
|
return new FluidTankInfo[0];
|
||||||
|
}
|
||||||
return new FluidTankInfo[] {lavaTank.getInfo()};
|
return new FluidTankInfo[] {lavaTank.getInfo()};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue