Fix pump not passing through air blocks

This commit is contained in:
Player 2013-06-01 02:11:38 +02:00
parent e22bc0b381
commit f04af071b8

View file

@ -113,7 +113,7 @@ public class TilePump extends TileMachine implements IMachine, IPowerReceptor, I
if (isLiquid(new BlockIndex(xCoord, y, zCoord))) {
aimY = y;
return;
} else if (worldObj.getBlockId(xCoord, y, zCoord) != 0)
} else if (!worldObj.isAirBlock(xCoord, y, zCoord)) {
return;
}
}
@ -121,6 +121,7 @@ public class TilePump extends TileMachine implements IMachine, IPowerReceptor, I
}
}
}
}
LiquidStack liquid = tank.getLiquid();
if (liquid != null && liquid.amount >= 0) {