Fix camera FOV not matching configured FOV

This is because the camera is considered flying which causes MC to increase its
FOV slightly.
This commit is contained in:
Jonas Herzig
2020-11-06 18:54:52 +01:00
parent d3230e1e38
commit 8f094000fe
@@ -405,6 +405,22 @@ public class CameraEntity
//$$ }
//#endif
//#if MC>=10800
@Override
public float getSpeed() {
Entity view = getRenderViewEntity(this.client);
if (view != this && view instanceof AbstractClientPlayerEntity) {
return ((AbstractClientPlayerEntity) view).getSpeed();
}
return 1;
}
//#else
//$$ @Override
//$$ public float getFOVMultiplier() {
//$$ return 1;
//$$ }
//#endif
@Override
public boolean isInvisible() {
Entity view = getRenderViewEntity(this.client);