Fix the fix

This commit is contained in:
Ellpeck 2016-05-07 20:24:56 +02:00
parent 9d1cb8e45a
commit bddce5fcd6

View file

@ -88,8 +88,8 @@ public class TileEntityFluidCollector extends TileEntityBase implements IFluidHa
if(block != null){ if(block != null){
BlockPos offsetPos = this.pos.offset(sideToManipulate); BlockPos offsetPos = this.pos.offset(sideToManipulate);
Block blockPresent = PosUtil.getBlock(offsetPos, this.worldObj); Block blockPresent = PosUtil.getBlock(offsetPos, this.worldObj);
boolean replaceable = !(blockPresent instanceof BlockLiquid) && !(blockPresent instanceof IFluidBlock) && !blockPresent.isReplaceable(this.worldObj, offsetPos); boolean placeable = !(blockPresent instanceof BlockLiquid) && !(blockPresent instanceof IFluidBlock) && blockPresent.isReplaceable(this.worldObj, offsetPos);
if(replaceable){ if(placeable){
PosUtil.setBlock(offsetPos, this.worldObj, block, 0, 3); PosUtil.setBlock(offsetPos, this.worldObj, block, 0, 3);
this.tank.drain(Util.BUCKET, true); this.tank.drain(Util.BUCKET, true);
} }