From f23014005f2dc63f412703ffdf2d9b3e65003ad6 Mon Sep 17 00:00:00 2001 From: cora Date: Sat, 25 Nov 2023 06:31:30 +0100 Subject: [PATCH] Only freeze water under open air and if light level < 10 --- mods/ITEMS/mcl_core/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index 664982145..6b3c9f251 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -1458,7 +1458,7 @@ minetest.register_abm({ interval = 32, chance = 8, action = function(pos, node) - if mcl_weather.has_snow(pos) and minetest.get_node_light(pos, 0) < 12 then + if mcl_weather.has_snow(pos) and minetest.get_natural_light(vector.offset(pos,0,1,0), 0.5) == minetest.LIGHT_MAX + 1 and minetest.get_node_light(pos) < 10 then node.name = "mcl_core:ice" minetest.swap_node(pos, node) end