Fix underwater fog colour regression

This commit is contained in:
FossFanatic 2022-12-21 14:04:47 +00:00
parent 1c752019f0
commit 79b1db4b1a
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ local water_color = "#0b4880"
local mg_name = minetest.get_mapgen_setting("mg_name") local mg_name = minetest.get_mapgen_setting("mg_name")
function mcl_weather.set_sky_box_clear(player,sky,fog) 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 = { local sc = {
day_sky = "#0000FF", -- Pure blue to make debugging this stuff easier. Not visible during normal gameplay. 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. day_horizon = "#FF0000", -- Pure red to make debugging this stuff easier. Not visible during normal gameplay.