diff --git a/gradle.properties b/gradle.properties index 7e3d025f..8a267cca 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/src/main/java/mod/acgaming/universaltweaks/tweaks/entities/jumping/coyotetime/UTCoyoteTimeJumping.java b/src/main/java/mod/acgaming/universaltweaks/tweaks/entities/jumping/coyotetime/UTCoyoteTimeJumping.java index fd1ef4d9..9dade3b7 100644 --- a/src/main/java/mod/acgaming/universaltweaks/tweaks/entities/jumping/coyotetime/UTCoyoteTimeJumping.java +++ b/src/main/java/mod/acgaming/universaltweaks/tweaks/entities/jumping/coyotetime/UTCoyoteTimeJumping.java @@ -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(); } } -} \ No newline at end of file +}