missed a spot

This commit is contained in:
Wagyourtail 2022-12-10 20:12:51 -07:00
parent 85087ce04a
commit ea1914a248
No known key found for this signature in database
GPG Key ID: 0D30679891BED858

View File

@ -111,7 +111,10 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro
Baritone.getExecutor().execute(() -> rescan(curr, context)); Baritone.getExecutor().execute(() -> rescan(curr, context));
} }
if (Baritone.settings().legitMine.value) { if (Baritone.settings().legitMine.value) {
if (!addNearby()) return null; if (!addNearby()) {
cancel();
return null;
}
} }
Optional<BlockPos> shaft = curr.stream() Optional<BlockPos> shaft = curr.stream()
.filter(pos -> pos.getX() == ctx.playerFeet().getX() && pos.getZ() == ctx.playerFeet().getZ()) .filter(pos -> pos.getX() == ctx.playerFeet().getX() && pos.getZ() == ctx.playerFeet().getZ())