1
0
mirror of https://github.com/cabaletta/baritone synced 2024-12-19 13:40:42 +00:00

dont glitch weirdly when failing a parkour jump

This commit is contained in:
Leijurv 2019-02-04 13:52:11 -08:00
parent 57b2e360ca
commit 798f25ff81
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -187,6 +187,11 @@ public class MovementParkour extends Movement {
logDebug("Pausing parkour since hand is active");
return state;
}
if (ctx.playerFeet().y < src.y) {
// we have fallen
logDebug("sorry");
return state.setStatus(MovementStatus.UNREACHABLE);
}
if (dist >= 4) {
state.setInput(Input.SPRINT, true);
}