MCHPR / MCHPRS

A multithreaded Minecraft server built for redstone.
MIT License
1.59k stars 69 forks source link

Fix for head angles being off (most notably player heads). #29

Closed shouttrickword closed 3 years ago

shouttrickword commented 3 years ago

Rust modulo operator behaves strangely on floating point numbers in certain situations, a bit more information about this is available at the euclidean modulo rfc.

A working workaround is to convert the number into integer first and then modulo.

shouttrickword commented 3 years ago

Also closes #28