Skip to content

Commit

Permalink
Update PacketManager.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Aspw-w committed Mar 11, 2024
1 parent e46b82e commit f4f3dc6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/java/net/aspw/client/features/api/PacketManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void onPacket(PacketEvent event) {

final BetterView betterView = Objects.requireNonNull(Launch.moduleManager.getModule(BetterView.class));

if (packet instanceof C03PacketPlayer && flagged) {
if (packet instanceof C03PacketPlayer.C05PacketPlayerLook && flagged) {
if (betterView.getCustomStrafe().get() && !betterView.getRotating())
betterView.setRotating(true);
if (mc.thePlayer.ticksExisted % 2 == 0)
Expand All @@ -141,10 +141,7 @@ public void onPacket(PacketEvent event) {
if (RotationUtils.targetRotation != null) {
event.cancelEvent();
PacketUtils.sendPacketNoEvent(
new C03PacketPlayer.C06PacketPlayerPosLook(
mc.thePlayer.posX,
mc.thePlayer.posY,
mc.thePlayer.posZ,
new C03PacketPlayer.C05PacketPlayerLook(
mc.thePlayer.rotationYaw,
mc.thePlayer.rotationPitch,
mc.thePlayer.onGround
Expand Down

0 comments on commit f4f3dc6

Please sign in to comment.