PaperMC / PaperMC/Paper

Player.getBodyYaw() not updating when player strafe

Open
#9,072 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: low status: accepted status: unlikely type: bug version: 1.19
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

Player bodyYaw updation after strafing without head moving, but nothing changes.

Observed/Actual behavior

When I strafe to left/right direction, visual body rotation was changed, but the Player.getBodyYaw value was same as before moving

Steps/models to reproduce

Just tap on keyboard to move your player left/right

Plugin and Datapack List

Only what I've written for testing.

Paper version

This server is running Paper version git-Paper-477 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: 5c78e77)
Previous version: git-Paper-404 (MC: 1.19.3)

Other

Additionally: BodyYaw value can grow below -180 and higher than +180

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on Paper 1.19.4 by strafing without moving the player's head, then inspect Player.getBodyYaw() before and after movement. Trace the body-yaw update path from that API entry point and verify that strafing changes the reported value and that values remain within the expected -180 to 180 range.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.