mojira.dev
MC-176621

Entity spawn packets use integers for yaw and pitch instead of bytes

Entity spawn packets use integers for yaw and pitch values unlike all other packets which use bytes to store yaw and pitch of entities. During the serialization they are converted to byte, but this serialization does not happen on singleplayer when receiving packets from integrated servers. This leads to singleplayer clients displaying entities (that aren't mobs) (e.g. boats) rotated slightly different from multiplayer clients.

Linked issues

Comments 2

Correct me if I'm wrong, but shouldn't the y rotation at the least be transferred as a short? A byte cannot cover 360 values (degrees).

2No2Name

(Unassigned)

Plausible

(Unassigned)

1.15.2, 1.18.1

22w14a

Retrieved