From 30a29a20c800a3f58e7b4c44622c6a150321a867 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 24 May 2017 21:49:34 +0200 Subject: [PATCH] Allow dungeons to destroy cobble and mossycobble --- mods/MAPGEN/mcl_dungeons/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/MAPGEN/mcl_dungeons/init.lua b/mods/MAPGEN/mcl_dungeons/init.lua index 7aa04a2c5..6296b1309 100644 --- a/mods/MAPGEN/mcl_dungeons/init.lua +++ b/mods/MAPGEN/mcl_dungeons/init.lua @@ -200,8 +200,9 @@ minetest.register_on_generated(function(minp, maxp) local p_pos = area:index(tx, ty, tz) -- Do not overwrite nodes with is_ground_content == false (e.g. bedrock) + -- Exceptions cobblestone and moss stone so neighborings dungeons nicely connect to each other local name = minetest.get_name_from_content_id(data[p_pos]) - if minetest.registered_nodes[name].is_ground_content then + if name == "mcl_core:cobble" or name == "mcl_core:mossycobble" or minetest.registered_nodes[name].is_ground_content then -- Floor if ty == y then if math.random(1,4) == 1 then