Add more entries to MineProcess
This commit is contained in:
parent
4c79701d22
commit
0434e1c5d3
@ -89,10 +89,16 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro
|
|||||||
if (calcFailed) {
|
if (calcFailed) {
|
||||||
if (!knownOreLocations.isEmpty() && Baritone.settings().blacklistClosestOnFailure.value) {
|
if (!knownOreLocations.isEmpty() && Baritone.settings().blacklistClosestOnFailure.value) {
|
||||||
logDirect("Unable to find any path to " + filter + ", blacklisting presumably unreachable closest instance...");
|
logDirect("Unable to find any path to " + filter + ", blacklisting presumably unreachable closest instance...");
|
||||||
|
if (Baritone.settings().desktopNotifications.value && Baritone.settings().notificationOnMineFail.value) {
|
||||||
|
NotificationHelper.notify("Unable to find any path to " + filter + ", blacklisting presumably unreachable closest instance...", true);
|
||||||
|
}
|
||||||
knownOreLocations.stream().min(Comparator.comparingDouble(ctx.player()::getDistanceSq)).ifPresent(blacklist::add);
|
knownOreLocations.stream().min(Comparator.comparingDouble(ctx.player()::getDistanceSq)).ifPresent(blacklist::add);
|
||||||
knownOreLocations.removeIf(blacklist::contains);
|
knownOreLocations.removeIf(blacklist::contains);
|
||||||
} else {
|
} else {
|
||||||
logDirect("Unable to find any path to " + filter + ", canceling mine");
|
logDirect("Unable to find any path to " + filter + ", canceling mine");
|
||||||
|
if (Baritone.settings().desktopNotifications.value && Baritone.settings().notificationOnMineFail.value) {
|
||||||
|
NotificationHelper.notify("Unable to find any path to " + filter + ", canceling mine", true);
|
||||||
|
}
|
||||||
cancel();
|
cancel();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user