Mojira Archive
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

Duplicate

shahar ben hamo

2017-11-23, 11:59 AM

2017-11-24, 06:27 AM

2017-11-24, 06:27 AM

1

0

Unconfirmed

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

-