Skip to content

Commit b411959

Browse files
committed
fix sprintfix
1 parent c7b548e commit b411959

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/dev/isxander/controlify/mixins/feature/patches/sprintfix/LocalPlayerMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class LocalPlayerMixin {
2525
* However, we do so anyway just for the sake of preventing any modifications to movement code with this toggle on.
2626
* <p>
2727
* This mixin retains parity with <1.21.5, where sprinting was only allowed at >=0.8f, 1.21.5 removed this,
28-
* since it does nto affect vanilla keyboard players.
28+
* since it does not affect vanilla keyboard players.
2929
*
3030
* @param instance the receiver
3131
* @param original the original call to {@link net.minecraft.client.player.ClientInput#hasForwardImpulse()}
@@ -42,7 +42,7 @@ private boolean requireSignificantImpulseToSprint(ClientInput instance, Operatio
4242
return original.call(instance);
4343
}
4444

45-
@Definition(id = "hasForwardImpulseLocal", local = @Local(type = boolean.class, name = "hasForwardImpulse"))
45+
@Definition(id = "hasForwardImpulseLocal", local = @Local(type = boolean.class, ordinal = 2))
4646
@Definition(id = "input", field = "Lnet/minecraft/client/player/LocalPlayer;input:Lnet/minecraft/client/player/ClientInput;")
4747
@Definition(id = "hasForwardImpulse", method = "Lnet/minecraft/client/player/ClientInput;hasForwardImpulse()Z")
4848
@Expression("hasForwardImpulseLocal = @(this.input.hasForwardImpulse())")

0 commit comments

Comments
 (0)