(Сделал так
Vector3d interpolated = currentTarget.getPositon(e.getPartialTicks());
Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + currentTarget.getHeight() / 2f, interpolated.z);
if (pos == null) return;
FunctionRegistry functionRegistry = dettex.getInstance().getFunctionRegistry();
AspectRatio aspectRatioFunc = functionRegistry.getAspectRatio();
if (aspectRatioFunc != null && aspectRatioFunc.isState()) {
float customAspect = aspectRatioFunc.width.get();
float normalAspect = (float) mc.getMainWindow().getFramebufferWidth() / (float) mc.getMainWindow().getFramebufferHeight();
float aspectCorrection = customAspect / normalAspect;
float centerX = mc.getMainWindow().getScaledWidth() / 2f;
pos = new Vector2f(
centerX + (pos.x - centerX) / aspectCorrection,
pos.y
);
})