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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user