1.17-pre1

This commit is contained in:
gnembon committed 2021-05-27 15:01:07 -03:00
1 parent e2dfbc5bdd
commit f64cf67e41
8 files changed
+21 -15

No files matched your search

@@ -165,7 +165,7 @@ public class SnoopyCommandSource extends ServerCommandSource
double d = position.x - vec3d.x;
double e = position.y - vec3d.y;
double f = position.z - vec3d.z;
double g = (double) MathHelper.sqrt(d * d + f * f);
double g = (double) Math.sqrt(d * d + f * f);
float h = MathHelper.wrapDegrees((float)(-(MathHelper.atan2(e, g) * 57.2957763671875D)));
float i = MathHelper.wrapDegrees((float)(MathHelper.atan2(f, d) * 57.2957763671875D) - 90.0F);
return this.withRotation(new Vec2f(h, i));