forked from Minetest/dynamic_liquid
stopping obsidian from leaping into the air
parent
08989ef513
commit
92080f807f
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue