From efbaf78c65064f5d8caed1da0709cf884ae59fea Mon Sep 17 00:00:00 2001 From: Emanuel Pilz Date: Fri, 8 Nov 2024 01:10:23 +0100 Subject: [PATCH] Use `player.isSprinting()` instead of `input.sprint()` Signed-off-by: Emanuel Pilz --- src/main/java/com/emonadeo/autorun/AutoRunMod.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/emonadeo/autorun/AutoRunMod.java b/src/main/java/com/emonadeo/autorun/AutoRunMod.java index 052324f..5e975d7 100644 --- a/src/main/java/com/emonadeo/autorun/AutoRunMod.java +++ b/src/main/java/com/emonadeo/autorun/AutoRunMod.java @@ -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()) {