From 03faa7764da53494b956def99e4624e1f8312405 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Wed, 12 Jun 2024 20:37:11 -0500 Subject: [PATCH] Fix variable name (caused crash) --- mods/ENVIRONMENT/mcl_weather/skycolor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENVIRONMENT/mcl_weather/skycolor.lua b/mods/ENVIRONMENT/mcl_weather/skycolor.lua index cf0c3f70e..3a0d8af41 100644 --- a/mods/ENVIRONMENT/mcl_weather/skycolor.lua +++ b/mods/ENVIRONMENT/mcl_weather/skycolor.lua @@ -175,7 +175,7 @@ function skycolor_utils.convert_to_rgb(minval, maxval, current_val, colors) -- Get the second color's values local index2 = math.min(index1 + 1, #colors) -- clamp to maximum color index (will occur if index1 == #colors) - local frac2 = 1.0 - fraction1 + local frac2 = 1.0 - frac1 local color2 = colors[index2] -- Interpolate between color1 and color2