From 92080f807fb3d4ec88f5cd762901e311803fd5b9 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Fri, 7 Apr 2017 09:31:14 -0600 Subject: [PATCH] stopping obsidian from leaping into the air --- cooling_lava.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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",