fix: sync silent rotations with vanilla rotation system

This commit is contained in:
cattyn
2026-03-11 13:50:50 +03:00
parent 1060fa18a0
commit b9b426377c
2 changed files with 4 additions and 0 deletions
@@ -72,6 +72,8 @@ public class RotationManager implements Util {
public void silent(float yaw, float pitch) {
mc.player.positionReminder = 20;
mc.player.yRotLast = yaw;
mc.player.xRotLast = pitch;
mc.player.connection.send(new ServerboundMovePlayerPacket.PosRot(
mc.player.getX(), mc.player.getY(), mc.player.getZ(),
yaw, pitch,
+2
View File
@@ -9,3 +9,5 @@ accessible field net/minecraft/network/protocol/game/ServerboundInteractPacket e
accessible method net/minecraft/client/multiplayer/MultiPlayerGameMode ensureHasSentCarriedItem ()V
accessible method net/minecraft/network/protocol/game/ServerboundInteractPacket$Action getType ()Lnet/minecraft/network/protocol/game/ServerboundInteractPacket$ActionType;
accessible field net/minecraft/client/player/LocalPlayer yRotLast F
accessible field net/minecraft/client/player/LocalPlayer xRotLast F