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){
BlockPos offsetPos = this.pos.offset(sideToManipulate);
Block blockPresent = PosUtil.getBlock(offsetPos, this.worldObj);
boolean replaceable = !(blockPresent instanceof BlockLiquid) && !(blockPresent instanceof IFluidBlock) && !blockPresent.isReplaceable(this.worldObj, offsetPos);
if(replaceable){
boolean placeable = !(blockPresent instanceof BlockLiquid) && !(blockPresent instanceof IFluidBlock) && blockPresent.isReplaceable(this.worldObj, offsetPos);
if(placeable){
PosUtil.setBlock(offsetPos, this.worldObj, block, 0, 3);
this.tank.drain(Util.BUCKET, true);
}