From 66769365d0a523227c16d3ae26c74c47a35eaea4 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sun, 11 Nov 2018 17:59:13 -0800 Subject: [PATCH] much better --- src/api/java/baritone/api/pathing/goals/GoalRunAway.java | 2 +- src/main/java/baritone/process/MineProcess.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/api/java/baritone/api/pathing/goals/GoalRunAway.java b/src/api/java/baritone/api/pathing/goals/GoalRunAway.java index d01f6eee..e55ba561 100644 --- a/src/api/java/baritone/api/pathing/goals/GoalRunAway.java +++ b/src/api/java/baritone/api/pathing/goals/GoalRunAway.java @@ -75,7 +75,7 @@ public class GoalRunAway implements Goal { } min = -min; if (maintainY.isPresent()) { - min += GoalYLevel.calculate(maintainY.get(), y); + min = min * 0.6 + GoalYLevel.calculate(maintainY.get(), y); } return min; } diff --git a/src/main/java/baritone/process/MineProcess.java b/src/main/java/baritone/process/MineProcess.java index 882456dd..c3a61426 100644 --- a/src/main/java/baritone/process/MineProcess.java +++ b/src/main/java/baritone/process/MineProcess.java @@ -131,13 +131,14 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro // only in non-Xray mode (aka legit mode) do we do this int y = Baritone.settings().legitMineYLevel.get(); if (branchPoint == null) { - if (!baritone.getPathingBehavior().isPathing() && playerFeet().y == y) { + /*if (!baritone.getPathingBehavior().isPathing() && playerFeet().y == y) { // cool, path is over and we are at desired y branchPoint = playerFeet(); branchPointRunaway = null; } else { return new GoalYLevel(y); - } + }*/ + branchPoint = playerFeet(); } // TODO shaft mode, mine 1x1 shafts to either side // TODO also, see if the GoalRunAway with maintain Y at 11 works even from the surface