This commit is contained in:
Leijurv 2018-08-01 13:51:23 -04:00
parent cc11310cde
commit 7fb426f94d
No known key found for this signature in database
GPG Key ID: 0936202430AE187C
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ public class LookManager extends Manager {
double blockReachDistance = (double) Minecraft.getMinecraft().playerController.getBlockReachDistance(); double blockReachDistance = (double) Minecraft.getMinecraft().playerController.getBlockReachDistance();
Vec3d vec3 = Minecraft.getMinecraft().player.getPositionEyes(1.0F); Vec3d vec3 = Minecraft.getMinecraft().player.getPositionEyes(1.0F);
Vec3d vec31 = getVectorForRotation(pitch, yaw); 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); RayTraceResult blah = Minecraft.getMinecraft().world.rayTraceBlocks(vec3, vec32, false, false, true);
return blah; return blah;
} }