From 4b3f8adb07ed63db731b4c9e6bee12f52cf7a497 Mon Sep 17 00:00:00 2001 From: joe Date: Thu, 7 Mar 2024 01:54:47 +0000 Subject: [PATCH] Preserve the player's yaw when facing down in /ccrackrng --- .../net/earthcomputer/clientcommands/features/CCrackRng.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/earthcomputer/clientcommands/features/CCrackRng.java b/src/main/java/net/earthcomputer/clientcommands/features/CCrackRng.java index d49b6e871..7657bf216 100644 --- a/src/main/java/net/earthcomputer/clientcommands/features/CCrackRng.java +++ b/src/main/java/net/earthcomputer/clientcommands/features/CCrackRng.java @@ -30,8 +30,8 @@ public interface OnCrack { private static String throwItems() { LocalPlayer player = Minecraft.getInstance().player; assert player != null; - player.moveTo(player.getX(), player.getY(), player.getZ(), 0, 90); - player.connection.send(new ServerboundMovePlayerPacket.Rot(0, 90, true)); // point to correct location + player.moveTo(player.getX(), player.getY(), player.getZ(), player.getYRot(), 90); + player.connection.send(new ServerboundMovePlayerPacket.Rot(player.getYRot(), 90, true)); // point to correct location ItemThrowTask task = new ItemThrowTask(10) { @Override protected void onSuccess() {