From 6c614d8376e3e461e644bee430e9e93835c9006b Mon Sep 17 00:00:00 2001 From: WillConker Date: Sat, 13 Jul 2024 12:30:39 +0200 Subject: [PATCH] Added line breaks in water freezing condition --- mods/ITEMS/mcl_core/functions.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index e66ce8db7..b520777d6 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -1458,7 +1458,9 @@ minetest.register_abm({ interval = 32, chance = 8, action = function(pos, node) - 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_artificial_light(minetest.get_node(pos).param1) < 10 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_artificial_light(minetest.get_node(pos).param1) < 10 then node.name = "mcl_core:ice" minetest.swap_node(pos, node) end