diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/movement/Sprint.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/movement/Sprint.java index 63bde6cb68..6935d708d9 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/movement/Sprint.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/movement/Sprint.java @@ -58,6 +58,14 @@ public enum Mode { .build() ); + private final Setting permaSprint = sgGeneral.add(new BoolSetting.Builder() + .name("sprint-while-stationary") + .description("Sprint even when not moving.") + .defaultValue(false) + .visible(() -> mode.get() == Mode.Rage) + .build() + ); + public Sprint() { super(Categories.Movement, "sprint", "Automatically sprints."); } @@ -98,7 +106,9 @@ public boolean shouldSprint() { ? (Math.abs(mc.player.input.movementForward) + Math.abs(mc.player.input.movementSideways)) : mc.player.input.movementForward; - if (movement <= (mc.player.isSubmergedInWater() ? 1.0E-5F : 0.8)) return false; + if (movement <= (mc.player.isSubmergedInWater() ? 1.0E-5F : 0.8)) { + if (mode.get() == Mode.Strict || !permaSprint.get()) return false; + } boolean strictSprint = !(mc.player.isTouchingWater() && !mc.player.isSubmergedInWater()) && ((ClientPlayerEntityAccessor) mc.player).invokeCanSprint()