From 79b1db4b1a9ffda1a8f3263f463e1ba14bf06176 Mon Sep 17 00:00:00 2001 From: FossFanatic Date: Wed, 21 Dec 2022 14:04:47 +0000 Subject: [PATCH] Fix underwater fog colour regression --- mods/ENVIRONMENT/mcl_weather/skycolor.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/ENVIRONMENT/mcl_weather/skycolor.lua b/mods/ENVIRONMENT/mcl_weather/skycolor.lua index 1b135f086..be45e2a9b 100644 --- a/mods/ENVIRONMENT/mcl_weather/skycolor.lua +++ b/mods/ENVIRONMENT/mcl_weather/skycolor.lua @@ -6,6 +6,8 @@ local water_color = "#0b4880" local mg_name = minetest.get_mapgen_setting("mg_name") function mcl_weather.set_sky_box_clear(player,sky,fog) + local pos = player:get_pos() + if minetest.get_item_group(minetest.get_node(vector.new(pos.x,pos.y+1.5,pos.z)).name, "water") ~= 0 then return end local sc = { day_sky = "#0000FF", -- Pure blue to make debugging this stuff easier. Not visible during normal gameplay. day_horizon = "#FF0000", -- Pure red to make debugging this stuff easier. Not visible during normal gameplay.