diff --git a/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/combat/ModuleKeepSprint.kt b/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/combat/ModuleKeepSprint.kt index f462771a4a3..24efb80b73e 100644 --- a/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/combat/ModuleKeepSprint.kt +++ b/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/combat/ModuleKeepSprint.kt @@ -40,12 +40,12 @@ object ModuleKeepSprint : ClientModule("KeepSprint", Category.COMBAT) { @Suppress("unused") private val postTickHandler = handler { - sprinting = mc.player?.isSprinting ?: false + sprinting = player.isSprinting } fun getMotion(): Double { return when { - mc.player?.hurtTime in hurtTicks -> motionWhenHurt + player.hurtTime in hurtTicks -> motionWhenHurt else -> motion }.random() / 100.0 }