mojira.dev
MC-122293

NBT Rotation of the player does not work as expected

When extracting the rotation tag from the NBT, a number between 0 to 360 is returned..

However, When passing the real 0 rotation in the code(not the wrapped one that is in F3), The NBT value goes to minus and displays a wrong number..

Fix:
The NBT tag for rotation needs the same wrapper that F3 uses, and adding 180 to the number before passing it to the NBT, That way it'll be really a number between 0 to 360

Related issues

Comments

[Mod] Neko

Does MC-121855 describe your issue?

migrated

Yes Neko, Thanks! I was searching for it before posting using a few keywords and couldnt find it..

migrated

(Unassigned)

Unconfirmed

Minecraft 1.12.2, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a

Retrieved