mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-10 02:01:07 +01:00
Changed node light check to artificial light so that water can freeze in the day
This commit is contained in:
parent
f23014005f
commit
a785be59d9
1 changed files with 1 additions and 1 deletions
|
@ -1458,7 +1458,7 @@ 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_node_light(pos) < 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
|
||||
|
|
Loading…
Reference in a new issue