use new mcl_cauldrons.add_level for dripstone lava

This commit is contained in:
cora 2024-12-03 15:56:35 +01:00 committed by ryvnf
parent 3e64d11b7d
commit 6089b99496

View File

@ -370,11 +370,11 @@ minetest.register_abm({
return return
end end
local node
for i = 1, 10 do for i = 1, 10 do
node = minetest.get_node(vector.offset(pos, 0, -i, 0)) local cpos = vector.offset(pos, 0, -i, 0)
local node = minetest.get_node(cpos)
if node.name == "mcl_cauldrons:cauldron" then if node.name == "mcl_cauldrons:cauldron" then
minetest.set_node(vector.offset(pos, 0, -i, 0), {name = "mcl_cauldrons:cauldron_3_lava"}) mcl_cauldrons.add_level(cpos, 3, "lava")
elseif node.name ~= "air" then elseif node.name ~= "air" then
return return
end end