Compare commits

..
1 Commits
Author SHA1 Message Date
Kiritiop d2f0d00d90 Fix flying mounts taking off on a single jump press on NeoForge 2026-11-14 12:33:59 -05:00
2 changed files with 3 additions and 1 deletions

No files matched your search

+1
View File
@@ -17,6 +17,7 @@
- Fixed Ponigiri food values for AppleSkin integration
- Fixed errors emitted by typos in Parched Peat bog structure files
- Fixed Unown punctuation forms (? and !) resolving to duplicate Showdown IDs and colliding in form displays.
- Fixed flying mounts taking off after a single jump press on NeoForge instead of a double press
### Developer
- Fixed JsonArray to MoValue conversion not working properly.
@@ -205,7 +205,8 @@ public abstract class LocalPlayerMixin extends AbstractClientPlayer implements O
this.cobblemon$isJumping = this.input.jumping;
}
@Inject(method = "aiStep", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/player/LocalPlayer;isSprinting()Z", shift = At.Shift.BEFORE))
// NeoForge adds a second isSprinting() call to aiStep, ordinal 0 keeps this to one run per tick
@Inject(method = "aiStep", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/player/LocalPlayer;isSprinting()Z", ordinal = 0, shift = At.Shift.BEFORE))
private void cobblemon$updateDoubleJumping(CallbackInfo ci) {
if (!this.cobblemon$isJumping && this.input.jumping && this.autoJumpTime <= 0 && !this.isSwimming()) {
if (this.cobblemon$survivalJumpTriggerTime != 0) {