fix: sync silent rotations with vanilla rotation system
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user