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-05 14:27:35 +01:00
parent d3230e1e38
commit 8f094000fe

View File

@@ -405,6 +405,22 @@ public class CameraEntity
//$$ } //$$ }
//#endif //#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 @Override
public boolean isInvisible() { public boolean isInvisible() {
Entity view = getRenderViewEntity(this.client); Entity view = getRenderViewEntity(this.client);