fix parkour maybe? fixes #211

This commit is contained in:
leijurv 2018-10-07 22:07:49 -07:00 committed by Leijurv
parent e17cc79cb3
commit 69762bf4b4
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -224,7 +224,7 @@ public class MovementParkour extends Movement {
}
state.setInput(InputOverrideHandler.Input.JUMP, true);
} else {
} else if(!playerFeet().equals(dest.offset(direction, -1))) {
state.setInput(InputOverrideHandler.Input.SPRINT, false);
if (playerFeet().equals(src.offset(direction, -1))) {
MovementHelper.moveTowards(state, src);