diff --git a/cooling_lava.lua b/cooling_lava.lua index e15efb9..d33b83f 100644 --- a/cooling_lava.lua +++ b/cooling_lava.lua @@ -198,8 +198,10 @@ local cool_lava_source = function(pos, node) elseif #evaporate_list > 0 then -- Again, this weird bit is necessary for breaking certain types of flow deadlock local loc = evaporate_list[math.random(1,#evaporate_list)] - minetest.set_node(pos, {name = "air"}) - minetest.set_node(loc, {name = "default:lava_source"}) + if loc.y <= pos.y then + minetest.set_node(pos, {name = "air"}) + minetest.set_node(loc, {name = "default:lava_source"}) + end end minetest.sound_play("default_cool_lava",