forked from Minetest/dynamic_liquid
stopping obsidian from leaping into the air
parent
08989ef513
commit
92080f807f
|
@ -198,9 +198,11 @@ local cool_lava_source = function(pos, node)
|
||||||
elseif #evaporate_list > 0 then
|
elseif #evaporate_list > 0 then
|
||||||
-- Again, this weird bit is necessary for breaking certain types of flow deadlock
|
-- Again, this weird bit is necessary for breaking certain types of flow deadlock
|
||||||
local loc = evaporate_list[math.random(1,#evaporate_list)]
|
local loc = evaporate_list[math.random(1,#evaporate_list)]
|
||||||
|
if loc.y <= pos.y then
|
||||||
minetest.set_node(pos, {name = "air"})
|
minetest.set_node(pos, {name = "air"})
|
||||||
minetest.set_node(loc, {name = "default:lava_source"})
|
minetest.set_node(loc, {name = "default:lava_source"})
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
minetest.sound_play("default_cool_lava",
|
minetest.sound_play("default_cool_lava",
|
||||||
{pos = pos, max_hear_distance = 16, gain = 0.25})
|
{pos = pos, max_hear_distance = 16, gain = 0.25})
|
||||||
|
|
Loading…
Reference in New Issue