Skip to content

Commit

Permalink
Use player.isSprinting() instead of input.sprint()
Browse files Browse the repository at this point in the history
Signed-off-by: Emanuel Pilz <[email protected]>
  • Loading branch information
emonadeo committed Nov 8, 2024
1 parent 4902205 commit efbaf78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/emonadeo/autorun/AutoRunMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private static void enableAutoRun(Minecraft client) {
}

Input input = client.player.input.keyPresses;
if (input.sprint() || alwaysSprint) {
if (client.player.isSprinting() || alwaysSprint) {
sprint = true;
}
if (!input.forward() && !input.backward() && !input.left() && !input.right()) {
Expand Down

0 comments on commit efbaf78

Please sign in to comment.