Skip to content

Commit

Permalink
Fix FogHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed Feb 22, 2025
1 parent fee5e03 commit 49f22cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/twilightforest/client/FogHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static void fogColors(EntityViewRenderEvent.FogColors event) {
}

// Smooth transition of fogColor blend ratio
fogColor = MathHelper.clamp(fogColor + ((isFiery || isSpooky || isDark) ? COLOR_BLEND_SPEED : -COLOR_BLEND_SPEED), 0.0F, 1.0F);
fogColor = MathHelper.clamp(fogColor + ((isFiery || isFrosty || isSpooky || isDark) ? COLOR_BLEND_SPEED : -COLOR_BLEND_SPEED), 0.0F, 1.0F);

// Linear interpolation of fog colors
fogColors[0] = (float) MathHelper.clampedLerp(event.getRed(), targetRed, fogColor);
Expand Down

0 comments on commit 49f22cb

Please sign in to comment.