@@ -48,7 +48,7 @@ public class SodiumWorldRenderer implements ChunkStatusListener {
4848 private int renderDistance ;
4949
5050 private double lastCameraX , lastCameraY , lastCameraZ ;
51- private double lastCameraPitch , lastCameraYaw ;
51+ private double lastCameraPitch , lastCameraYaw , lastFov ;
5252
5353 private boolean useEntityCulling ;
5454
@@ -168,9 +168,10 @@ public void updateChunks(Camera camera, Frustum frustum, boolean hasForcedFrustu
168168
169169 float pitch = camera .getPitch ();
170170 float yaw = camera .getYaw ();
171+ double fov = client .options .fov ;
171172
172173 boolean dirty = cameraPos .x != this .lastCameraX || cameraPos .y != this .lastCameraY || cameraPos .z != this .lastCameraZ ||
173- pitch != this .lastCameraPitch || yaw != this .lastCameraYaw ;
174+ pitch != this .lastCameraPitch || yaw != this .lastCameraYaw || fov != this . lastFov ;
174175
175176 if (dirty ) {
176177 this .chunkRenderManager .markDirty ();
@@ -181,6 +182,7 @@ public void updateChunks(Camera camera, Frustum frustum, boolean hasForcedFrustu
181182 this .lastCameraZ = cameraPos .z ;
182183 this .lastCameraPitch = pitch ;
183184 this .lastCameraYaw = yaw ;
185+ this .lastFov = fov ;
184186
185187 profiler .swap ("chunk_update" );
186188
@@ -346,7 +348,7 @@ public void onChunkRenderUpdated(ChunkRenderData meshBefore, ChunkRenderData mes
346348 * @return True if the entity is visible, otherwise false
347349 */
348350 public boolean isEntityVisible (Entity entity ) {
349- if (!this .useEntityCulling ) {
351+ if (!this .getUseEntityCulling () ) {
350352 return true ;
351353 }
352354
0 commit comments