mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-11 01:41:47 +01:00
removed that annotation (I still do not understand why it is a problem)
This commit is contained in:
parent
6e8ffdea07
commit
32a422e13f
@ -6,7 +6,6 @@ import net.minestom.server.utils.MathUtils;
|
|||||||
import net.minestom.server.utils.position.PositionUtils;
|
import net.minestom.server.utils.position.PositionUtils;
|
||||||
import org.jetbrains.annotations.Contract;
|
import org.jetbrains.annotations.Contract;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Range;
|
|
||||||
|
|
||||||
import java.util.function.DoubleUnaryOperator;
|
import java.util.function.DoubleUnaryOperator;
|
||||||
|
|
||||||
@ -301,7 +300,7 @@ public record Pos(double x, double y, double z, float yaw, float pitch) implemen
|
|||||||
* @param yaw The possible "wrong" yaw
|
* @param yaw The possible "wrong" yaw
|
||||||
* @return a fixed yaw
|
* @return a fixed yaw
|
||||||
*/
|
*/
|
||||||
private static @Range(from = -180, to = 180) float fixYaw(float yaw) {
|
private static float fixYaw(float yaw) {
|
||||||
yaw = yaw % 360;
|
yaw = yaw % 360;
|
||||||
if (yaw < -180.0F) {
|
if (yaw < -180.0F) {
|
||||||
yaw += 360.0F;
|
yaw += 360.0F;
|
||||||
|
Loading…
Reference in New Issue
Block a user