Skip to content

Commit

Permalink
Fixed NoJumpDelay + AirJump making the player not jump. (CCBlueX#632)
Browse files Browse the repository at this point in the history
* Fixed NoJumpDelay + AirJump making the player not jump.

* Better look
  • Loading branch information
mems01 authored Oct 17, 2021
1 parent c1cbdf0 commit ca7d162
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ private void hookNoPush(CallbackInfo callbackInfo) {

@Inject(method = "tickMovement", at = @At("HEAD"), cancellable = true)
private void hookTickMovement(CallbackInfo callbackInfo) {
if (ModuleNoJumpDelay.INSTANCE.getEnabled()) {
jumpingCooldown = ModuleAirJump.INSTANCE.getEnabled() ? 10 : 0;
if (ModuleNoJumpDelay.INSTANCE.getEnabled() && !ModuleAirJump.INSTANCE.getEnabled()) {
jumpingCooldown = 0;
}
}

Expand Down

0 comments on commit ca7d162

Please sign in to comment.