From 2edc7327ab188a2c7e34bf7648668b31f2e69e67 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sun, 5 Aug 2018 20:08:41 -0400 Subject: [PATCH] IDIOTT --- src/main/java/baritone/bot/utils/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/bot/utils/Utils.java b/src/main/java/baritone/bot/utils/Utils.java index 67108735..c919f0d1 100755 --- a/src/main/java/baritone/bot/utils/Utils.java +++ b/src/main/java/baritone/bot/utils/Utils.java @@ -27,7 +27,7 @@ public final class Utils { */ public static Tuple calcRotationFromVec3d(Vec3d orig, Vec3d dest) { double yaw = Math.atan2(orig.x - dest.x, -orig.z + dest.z); - double dist = Math.sqrt((orig.x - dest.x) * (orig.x - dest.x) + (-orig.x + dest.x) * (-orig.z + dest.z)); + double dist = Math.sqrt((orig.x - dest.x) * (orig.x - dest.x) + (-orig.z + dest.z) * (-orig.z + dest.z)); double pitch = Math.atan2(orig.y - dest.y, dist); return new Tuple<>((float) (yaw * 180 / Math.PI), (float) (pitch * 180 / Math.PI));