Fix pump not passing through air blocks
This commit is contained in:
parent
e22bc0b381
commit
f04af071b8
1 changed files with 9 additions and 8 deletions
|
@ -113,7 +113,7 @@ public class TilePump extends TileMachine implements IMachine, IPowerReceptor, I
|
||||||
if (isLiquid(new BlockIndex(xCoord, y, zCoord))) {
|
if (isLiquid(new BlockIndex(xCoord, y, zCoord))) {
|
||||||
aimY = y;
|
aimY = y;
|
||||||
return;
|
return;
|
||||||
} else if (worldObj.getBlockId(xCoord, y, zCoord) != 0)
|
} else if (!worldObj.isAirBlock(xCoord, y, zCoord)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -121,6 +121,7 @@ public class TilePump extends TileMachine implements IMachine, IPowerReceptor, I
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LiquidStack liquid = tank.getLiquid();
|
LiquidStack liquid = tank.getLiquid();
|
||||||
if (liquid != null && liquid.amount >= 0) {
|
if (liquid != null && liquid.amount >= 0) {
|
||||||
|
|
Loading…
Reference in a new issue