Commit 2b65c14
Convert yaw/pitch in sync_entity_position handler (#3896)
The 1.21.3+ sync_entity_position packet replaced separate look/move
packets but the new handler set entity.yaw/pitch directly from packet
fields, skipping the notchian → radians conversion the older handlers
in this file apply via fromNotchianYaw/fromNotchianYawByte.
Tracked entities (other players, mobs) ended up with raw protocol
values in their public yaw/pitch fields, so consumers like
prismarine-viewer interpreting them as radians produced wildly wrong
rotations on every move event. The bug was masked when entities also
emitted entity_look packets (which set yaw correctly via the byte
helper), so it was visible mainly during y-only motion (jumping)
where no look packet fires.
Co-authored-by: domdomegg <domdomegg+anthropic@gmail.com>1 parent 61fbd3a commit 2b65c14
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
353 | | - | |
| 352 | + | |
| 353 | + | |
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| |||
0 commit comments