@@ -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
@@ -165,9 +165,10 @@ public void updateChunks(Camera camera, Frustum frustum, boolean hasForcedFrustu
165165 Vec3d pos = camera .getPos ();
166166 float pitch = camera .getPitch ();
167167 float yaw = camera .getYaw ();
168+ double fov = client .options .fov ;
168169
169170 boolean dirty = pos .x != this .lastCameraX || pos .y != this .lastCameraY || pos .z != this .lastCameraZ ||
170- pitch != this .lastCameraPitch || yaw != this .lastCameraYaw ;
171+ pitch != this .lastCameraPitch || yaw != this .lastCameraYaw || fov != this . lastFov ;
171172
172173 if (dirty ) {
173174 this .chunkRenderManager .markDirty ();
@@ -178,6 +179,7 @@ public void updateChunks(Camera camera, Frustum frustum, boolean hasForcedFrustu
178179 this .lastCameraZ = pos .z ;
179180 this .lastCameraPitch = pitch ;
180181 this .lastCameraYaw = yaw ;
182+ this .lastFov = fov ;
181183
182184 this .chunkRenderManager .unloadPending ();
183185
@@ -339,7 +341,7 @@ public void onChunkRenderUpdated(int x, int y, int z, ChunkRenderData meshBefore
339341 * @return True if the entity is visible, otherwise false
340342 */
341343 public boolean isEntityVisible (Entity entity ) {
342- if (!this .useEntityCulling ) {
344+ if (!this .getUseEntityCulling () ) {
343345 return true ;
344346 }
345347
0 commit comments