fix parkour jumps ending on lilypads, fixes #203

This commit is contained in:
Leijurv 2018-10-02 14:04:24 -07:00
parent feeeae5918
commit da137f35de
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -162,7 +162,7 @@ public class MovementParkour extends Movement {
} }
MovementHelper.moveTowards(state, dest); MovementHelper.moveTowards(state, dest);
if (playerFeet().equals(dest)) { if (playerFeet().equals(dest)) {
if (player().posY - playerFeet().getY() < 0.01) { if (player().posY - playerFeet().getY() < 0.094) { // lilypads
state.setStatus(MovementState.MovementStatus.SUCCESS); state.setStatus(MovementState.MovementStatus.SUCCESS);
} }
} else if (!playerFeet().equals(src)) { } else if (!playerFeet().equals(src)) {