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"); logDebug("Pausing parkour since hand is active");
return state; return state;
} }
if (ctx.playerFeet().y < src.y) {
// we have fallen
logDebug("sorry");
return state.setStatus(MovementStatus.UNREACHABLE);
}
if (dist >= 4) { if (dist >= 4) {
state.setInput(Input.SPRINT, true); state.setInput(Input.SPRINT, true);
} }