Made fluid collector not output and input wrong stuff

This commit is contained in:
Ellpeck 2016-06-19 22:30:18 +02:00
parent 144e8e4d0a
commit c1eb3fb644

View file

@ -28,7 +28,17 @@ import net.minecraftforge.fml.relauncher.SideOnly;
public class TileEntityFluidCollector extends TileEntityBase implements IFluidSaver, IRedstoneToggle, net.minecraftforge.fluids.IFluidHandler{ public class TileEntityFluidCollector extends TileEntityBase implements IFluidSaver, IRedstoneToggle, net.minecraftforge.fluids.IFluidHandler{
public final FluidTank tank = new FluidTank(8*Util.BUCKET); public final FluidTank tank = new FluidTank(8*Util.BUCKET){
@Override
public boolean canFill(){
return TileEntityFluidCollector.this.isPlacer;
}
@Override
public boolean canDrain(){
return !TileEntityFluidCollector.this.isPlacer;
}
};
public boolean isPlacer; public boolean isPlacer;
private int lastTankAmount; private int lastTankAmount;
private int currentTime; private int currentTime;