diff --git a/src/main/java/me/jellysquid/mods/sodium/client/render/immediate/CloudRenderer.java b/src/main/java/me/jellysquid/mods/sodium/client/render/immediate/CloudRenderer.java index 72151075f6..2d87a150be 100644 --- a/src/main/java/me/jellysquid/mods/sodium/client/render/immediate/CloudRenderer.java +++ b/src/main/java/me/jellysquid/mods/sodium/client/render/immediate/CloudRenderer.java @@ -67,10 +67,14 @@ public void render(@Nullable ClientWorld world, ClientPlayerEntity player, Matri return; } - Vec3d color = world.getCloudsColor(tickDelta); - float cloudHeight = world.getDimensionEffects().getCloudsHeight(); + if (Float.isNaN(cloudHeight)) { + return; + } + + Vec3d color = world.getCloudsColor(tickDelta); + double cloudTime = (ticks + tickDelta) * 0.03F; double cloudCenterX = (cameraX + cloudTime); double cloudCenterZ = (cameraZ) + 0.33D;