Skip to content

Commit

Permalink
fix detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Feb 15, 2025
1 parent 1c1b86d commit 7eed400
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ object ModuleSprint : ClientModule("Sprint", Category.MOVEMENT) {
MathHelper.sin(deltaYaw * 0.017453292f) > 1.0E-5
val preventSprint = (if (player.isOnGround) stopOnGround else stopOnAir)
&& !shouldSprintOmnidirectional
&& RotationManager.workingRotationTarget?.movementCorrection == MovementCorrection.OFF && !hasForwardMovement
&& RotationManager.workingRotationTarget?.movementCorrection == MovementCorrection.OFF
&& !hasForwardMovement

return running && preventSprint
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ object ModuleFreeCam : ClientModule("FreeCam", Category.RENDER, disableOnQuit =
return@handler
}

RotationManager.setRotationTarget(rotationsConfigurable.toAimPlan(lookAt), Priority.NOT_IMPORTANT, ModuleFreeCam)
RotationManager.setRotationTarget(rotationsConfigurable.toAimPlan(lookAt),
Priority.NOT_IMPORTANT, ModuleFreeCam)
}

fun applyCameraPosition(entity: Entity, tickDelta: Float) {
Expand Down

0 comments on commit 7eed400

Please sign in to comment.