Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(legacy): Added DebugRotations option. #3386

Merged
merged 2 commits into from
Jul 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
added functionality
  • Loading branch information
mems01 committed Jul 7, 2024
commit acefbf41d88b869d5e3f800fc78ba830af0ef108
7 changes: 7 additions & 0 deletions src/main/java/net/ccbluex/liquidbounce/utils/RotationUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,13 @@ object RotationUtils : MinecraftInstance(), Listenable {
return
}

val oldYawDiff = getAngleDifference(serverRotation.yaw, lastServerRotation.yaw)
val oldPitchDiff = getAngleDifference(serverRotation.pitch, lastServerRotation.pitch)

if (Rotations.debugRotations) {
ClientUtils.displayChatMessage("DIFF | YAW: ${oldYawDiff}, PITCH: ${oldPitchDiff}")
}

rotationData?.let {
// Was the rotation update immediate? Allow updates the next tick.
if (it.immediate) {
Expand Down