prevent double jumping

This commit is contained in:
Leijurv 2018-11-23 07:55:59 -08:00
parent b5a4e65fbf
commit 0d7131413a
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -211,6 +211,10 @@ public class MovementAscend extends Movement {
return state;
}
if (ctx.playerFeet().equals(src.up())) {
return state; // no need to hit space if we're already jumping
}
if (headBonkClear()) {
return state.setInput(Input.JUMP, true);
}