From 9d1cb8e45a76192aaecccd294fe12f5baecb3da0 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 7 May 2016 20:23:50 +0200 Subject: [PATCH] Fixed a bug with fluid placers replacing fluids in front of them --- .../actuallyadditions/mod/tile/TileEntityFluidCollector.java | 3 ++- 1 file changed, 2 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 605012c44..7b94a173e 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityFluidCollector.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityFluidCollector.java @@ -15,6 +15,7 @@ import de.ellpeck.actuallyadditions.mod.util.PosUtil; import de.ellpeck.actuallyadditions.mod.util.Util; import de.ellpeck.actuallyadditions.mod.util.WorldUtil; import net.minecraft.block.Block; +import net.minecraft.block.BlockLiquid; import net.minecraft.init.Blocks; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.EnumFacing; @@ -87,7 +88,7 @@ public class TileEntityFluidCollector extends TileEntityBase implements IFluidHa if(block != null){ BlockPos offsetPos = this.pos.offset(sideToManipulate); Block blockPresent = PosUtil.getBlock(offsetPos, this.worldObj); - boolean replaceable = blockPresent.isReplaceable(this.worldObj, offsetPos); + boolean replaceable = !(blockPresent instanceof BlockLiquid) && !(blockPresent instanceof IFluidBlock) && !blockPresent.isReplaceable(this.worldObj, offsetPos); if(replaceable){ PosUtil.setBlock(offsetPos, this.worldObj, block, 0, 3); this.tank.drain(Util.BUCKET, true);