Skip to content

Commit

Permalink
Add Coyote Time Jumping movement input check
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Feb 8, 2025
1 parent dfa6e63 commit 9365ab7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ modGroup = mod.acgaming.universaltweaks

# Version of your mod.
# This field can be left empty if you want your mod's version to be determined by the latest git tag instead.
modVersion = 1.14.0
modVersion = 1.14.1

# Whether to use the old jar naming structure (modid-mcversion-version) instead of the new version (modid-version)
includeMCVersionJar = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ private static void attemptJump(EntityPlayerSP player)
if (player.onGround) jumped = false;
if (player.motionY > 0.1) jumped = true;
if (jumped || player.isOnLadder() || player.isInWater() || player.isInLava() || player.world.collidesWithAnyBlock(player.getEntityBoundingBox().expand(0, -0.001, 0))) return;
if (player.motionY < 0.1 && player.movementInput.jump && player.fallDistance < 1 && !player.isElytraFlying())
if (player.motionY < 0.1 && player.movementInput != null && player.movementInput.jump && player.fallDistance < 1 && !player.isElytraFlying())
{
jumped = true;
player.jump();
}
}
}
}

0 comments on commit 9365ab7

Please sign in to comment.