Skip to content

Commit

Permalink
Preserve the player's yaw when facing down in /ccrackrng
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Mar 7, 2024
1 parent 80ee292 commit 4b3f8ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 4b3f8ad

Please sign in to comment.