Skip to content

Commit

Permalink
Update RotationUtils.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Aspw-w committed Mar 21, 2024
1 parent 8950153 commit f0687cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/net/aspw/client/utils/RotationUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ class RotationUtils : MinecraftInstance(), Listenable {
if (!Launch.isStarting) {
perspectiveToggled = true
if (mc.thePlayer != null) {
prevCameraYaw = mc.thePlayer.prevRotationYaw
prevCameraPitch = mc.thePlayer.prevRotationPitch
cameraYaw = mc.thePlayer.rotationYaw
cameraPitch = mc.thePlayer.rotationPitch
}
Expand All @@ -148,6 +150,8 @@ class RotationUtils : MinecraftInstance(), Listenable {
if (!Launch.isStarting) {
perspectiveToggled = false
if (mc.thePlayer != null) {
mc.thePlayer.prevRotationYaw = prevCameraYaw
mc.thePlayer.prevRotationPitch = prevCameraPitch
mc.thePlayer.rotationYaw = cameraYaw
mc.thePlayer.rotationPitch = cameraPitch
}
Expand Down

0 comments on commit f0687cc

Please sign in to comment.