From c9e81897a5d3105fbf1fdff78a43f147363f642f Mon Sep 17 00:00:00 2001 From: Leijurv Date: Wed, 8 May 2019 11:51:48 -0700 Subject: [PATCH] im blind lol thanks babj --- src/main/java/baritone/process/MineProcess.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/baritone/process/MineProcess.java b/src/main/java/baritone/process/MineProcess.java index 59c2d370..ca1b3490 100644 --- a/src/main/java/baritone/process/MineProcess.java +++ b/src/main/java/baritone/process/MineProcess.java @@ -88,17 +88,16 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro return null; } } - CANCEL: if (calcFailed) { if (!knownOreLocations.isEmpty() && Baritone.settings().blacklistClosestOnFailure.value) { logDirect("Unable to find any path to " + mining + ", blacklisting presumably unreachable closest instance..."); knownOreLocations.stream().min(Comparator.comparingDouble(ctx.player()::getDistanceSq)).ifPresent(blacklist::add); knownOreLocations.removeIf(blacklist::contains); - break CANCEL; // 😎 + } else { + logDirect("Unable to find any path to " + mining + ", canceling Mine"); + cancel(); + return null; } - logDirect("Unable to find any path to " + mining + ", canceling Mine"); - cancel(); - return null; } int mineGoalUpdateInterval = Baritone.settings().mineGoalUpdateInterval.value; List curr = new ArrayList<>(knownOreLocations);