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
1 changed files with 1 additions and 1 deletions

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