From 7fb426f94d71f687fd764c29163861382bb1538a Mon Sep 17 00:00:00 2001 From: Leijurv Date: Wed, 1 Aug 2018 13:51:23 -0400 Subject: [PATCH] vec --- src/main/java/baritone/ui/LookManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/ui/LookManager.java b/src/main/java/baritone/ui/LookManager.java index 7ad10501..c989fbb7 100644 --- a/src/main/java/baritone/ui/LookManager.java +++ b/src/main/java/baritone/ui/LookManager.java @@ -171,7 +171,7 @@ public class LookManager extends Manager { double blockReachDistance = (double) Minecraft.getMinecraft().playerController.getBlockReachDistance(); Vec3d vec3 = Minecraft.getMinecraft().player.getPositionEyes(1.0F); Vec3d vec31 = getVectorForRotation(pitch, yaw); - Vec3d vec32 = vec3.addVector(vec31.xCoord * blockReachDistance, vec31.yCoord * blockReachDistance, vec31.zCoord * blockReachDistance); + Vec3d vec32 = vec3.add(vec31.x * blockReachDistance, vec31.y * blockReachDistance, vec31.z * blockReachDistance); RayTraceResult blah = Minecraft.getMinecraft().world.rayTraceBlocks(vec3, vec32, false, false, true); return blah; }