clear all keys including sprint in the next movement, fixes #194

This commit is contained in:
Leijurv 2018-10-01 14:26:08 -07:00
parent 76365a4564
commit f338cdd2e5
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -336,6 +336,7 @@ public class PathExecutor implements Helper {
if (canSprintInto(current, next)) { if (canSprintInto(current, next)) {
if (playerFeet().equals(current.getDest())) { if (playerFeet().equals(current.getDest())) {
pathPosition++; pathPosition++;
clearKeys();
} }
if (!player().isSprinting()) { if (!player().isSprinting()) {
player().setSprinting(true); player().setSprinting(true);