1
0
mirror of https://github.com/cabaletta/baritone synced 2024-12-18 13:15:13 +00:00
This commit is contained in:
Leijurv 2019-02-13 16:33:27 -08:00
parent b2583773d5
commit e8d3bf509c
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -405,7 +405,7 @@ public class PathExecutor implements IPathExecutor, Helper {
logDebug("Skipping descend to straight ascend");
return true;
}
if (canSprintInto(ctx, current, next)) {
if (canSprintFromDescendInto(ctx, current, next)) {
if (ctx.playerFeet().equals(current.getDest())) {
pathPosition++;
onChangeInPathPosition();
@ -429,7 +429,7 @@ public class PathExecutor implements IPathExecutor, Helper {
return false;
}
private static boolean canSprintInto(IPlayerContext ctx, IMovement current, IMovement next) {
private static boolean canSprintFromDescendInto(IPlayerContext ctx, IMovement current, IMovement next) {
if (next instanceof MovementDescend && next.getDirection().equals(current.getDirection())) {
return true;
}