From dd9779cc9dba75af10acad06ada1c420cb8991ef Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Sun, 20 May 2018 00:53:46 -0600 Subject: [PATCH] go straight to hot obsidian lining if that's enabled --- init.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 6b39395..8096126 100644 --- a/init.lua +++ b/init.lua @@ -169,12 +169,20 @@ remove_unsupported_lava = function(area, data, vi, x, y, z) end end +-- If we're adding glow versions of rock, then place glow obsidian directly. +local obsidianize_id +if magma_conduits.config.glowing_rock then + obsidianize_id = minetest.get_content_id("magma_conduits:glow_obsidian") +else + obsidianize_id = c_obsidian +end + local obsidianize = function(area, data, vi, x, y, z, minp, maxp) if data[vi] == c_lava then for pi in area:iter(math.max(x-1, minp.x), math.max(y-1, minp.y), math.max(z-1, minp.z), math.min(x+1, maxp.x), math.min(y+1, maxp.y), math.min(z+1, maxp.z)) do if data[pi] == c_stone then - data[pi] = c_obsidian + data[pi] = obsidianize_id end end end