From c1eb3fb644dd04f069c6ccdf2b5f8f1a71e182cb Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 19 Jun 2016 22:30:18 +0200 Subject: [PATCH] Made fluid collector not output and input wrong stuff --- .../mod/tile/TileEntityFluidCollector.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityFluidCollector.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityFluidCollector.java index 42eb5e093..a4290361f 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityFluidCollector.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityFluidCollector.java @@ -28,7 +28,17 @@ import net.minecraftforge.fml.relauncher.SideOnly; 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; private int lastTankAmount; private int currentTime;