Prevent water freezing and ice melting ABMs from fighting

This commit is contained in:
cora 2023-11-21 16:53:57 +01:00 committed by WillConker
parent dc07eea590
commit c2098d777f

View file

@ -1458,7 +1458,7 @@ minetest.register_abm({
interval = 32,
chance = 8,
action = function(pos, node)
if mcl_weather.has_snow(pos) then
if mcl_weather.has_snow(pos) and minetest.get_node_light(pos, 0) < 12 then
node.name = "mcl_core:ice"
minetest.swap_node(pos, node)
end