You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common/buildcraft/factory/TileQuarry.java
+21-6Lines changed: 21 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
importjava.util.List;
12
12
importjava.util.Set;
13
13
14
+
importnet.minecraft.block.Block;
14
15
importnet.minecraft.entity.item.EntityItem;
15
16
importnet.minecraft.entity.player.EntityPlayer;
16
17
importnet.minecraft.item.ItemStack;
@@ -259,15 +260,22 @@ public boolean findTarget(boolean doSet) {
259
260
if (!columnVisitListIsUpdated) { // nextTarget may not be accurate, at least search the target column for changes
260
261
for (inty = nextTarget[1] + 1; y < yCoord + 3; y++) {
261
262
intblockID = worldObj.getBlockId(nextTarget[0], y, nextTarget[2]);
262
-
263
-
if (BlockUtil.canChangeBlock(blockID, worldObj, nextTarget[0], y, nextTarget[2]) && !BlockUtil.isSoftBlock(blockID, worldObj, nextTarget[0], y, nextTarget[2])) {
263
+
if (BlockUtil.isAnObstructingBlock(blockID, worldObj, nextTarget[0], y, nextTarget[2]) || !BlockUtil.isSoftBlock(blockID, worldObj, nextTarget[0], y, nextTarget[2])) {
264
264
createColumnVisitList();
265
-
nextTarget = visitList.removeFirst();
266
-
265
+
columnVisitListIsUpdated = true;
266
+
nextTarget = null;
267
267
break;
268
268
}
269
269
}
270
270
}
271
+
if (columnVisitListIsUpdated && nextTarget == null && !visitList.isEmpty())
0 commit comments