1
0
Fork 0

Merge pull request 'mapgen/mcl_mapgen_core: move set_node decorations a node callback' (#2028) from fix-nether-wart into master

Reviewed-on: MineClone2/MineClone2#2028
This commit is contained in:
cora 2022-02-25 21:28:40 +00:00
commit 8e1a9e1785
1 changed files with 6 additions and 4 deletions

View File

@ -2179,15 +2179,17 @@ local function basic(vm, data, data2, emin, emax, area, minp, maxp, blockseed)
lvm_used = true
end
return lvm_used, shadow
end
local function basic_node(minp, maxp, blockseed)
if mg_name ~= "singlenode" then
-- Generate special decorations
generate_underground_mushrooms(minp, maxp, blockseed)
generate_nether_decorations(minp, maxp, blockseed)
generate_structures(minp, maxp, blockseed, biomemap)
generate_structures(minp, maxp, blockseed, minetest.get_mapgen_object("biomemap"))
end
return lvm_used, shadow
end
mcl_mapgen_core.register_generator("main", basic, nil, 1, true)
mcl_mapgen_core.register_generator("main", basic, basic_node, 1, true)