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"); logDebug("Skipping descend to straight ascend");
return true; return true;
} }
if (canSprintInto(ctx, current, next)) { if (canSprintFromDescendInto(ctx, current, next)) {
if (ctx.playerFeet().equals(current.getDest())) { if (ctx.playerFeet().equals(current.getDest())) {
pathPosition++; pathPosition++;
onChangeInPathPosition(); onChangeInPathPosition();
@ -429,7 +429,7 @@ public class PathExecutor implements IPathExecutor, Helper {
return false; 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())) { if (next instanceof MovementDescend && next.getDirection().equals(current.getDirection())) {
return true; return true;
} }