Fix wrong logic.

This commit is contained in:
Antifluxfield 2017-09-22 14:06:42 +08:00
parent 3db38a5c53
commit aef60bbf3b
2 changed files with 2 additions and 2 deletions

View file

@ -160,7 +160,7 @@ public abstract class GT_MetaTileEntity_DrillerBase extends GT_MetaTileEntity_Mu
}
protected boolean reachingVoidOrBedrock() {
return yHead <= 0 || checkBlockAndMeta(xPipe, yHead - 1, zPipe, Blocks.bedrock, 0);
return yHead <= 0 || checkBlockAndMeta(xPipe, yHead - 1, zPipe, Blocks.bedrock, W);
}
private boolean isHasMiningPipes() {

View file

@ -90,7 +90,7 @@ public abstract class GT_MetaTileEntity_OilDrillBase extends GT_MetaTileEntity_D
case 3: workState = STATE_UPWARD; return true;
}
if (!reachingVoidOrBedrock() && tryFillChunkList()) {
if (reachingVoidOrBedrock() && tryFillChunkList()) {
float speed = .5F+(GT_Utility.getTier(getMaxInputVoltage()) - getMinTier()) *.25F;
FluidStack tFluid = pumpOil(speed);
if (tFluid != null && tFluid.amount > getTotalConfigValue()){