make mining.depth work with quarries

This commit is contained in:
asiekierka 2015-04-02 08:15:19 +02:00
parent aeb580cd78
commit 341f311ab6

View file

@ -333,7 +333,7 @@ public class TileQuarry extends TileAbstractBuilder implements IHasWork, ISidedI
Integer[][] columnHeights = new Integer[builder.blueprint.sizeX - 2][builder.blueprint.sizeZ - 2];
boolean[][] blockedColumns = new boolean[builder.blueprint.sizeX - 2][builder.blueprint.sizeZ - 2];
for (int searchY = yCoord + 3; searchY >= 0; --searchY) {
for (int searchY = yCoord + 3; searchY >= Math.max(yCoord - BuildCraftFactory.miningDepth, 0); --searchY) {
int startX, endX, incX;
if (searchY % 2 == 0) {