much better

This commit is contained in:
Leijurv 2018-11-11 17:59:13 -08:00
parent e3cb164723
commit 66769365d0
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -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