From 8a82953e5d9f99917ab9618684ad21c8d0ba00cd Mon Sep 17 00:00:00 2001 From: cora Date: Fri, 25 Mar 2022 16:21:55 +0100 Subject: [PATCH] Add biomegen to test mg --- multi_map_generators/mmgen_mytest.lua | 6 ++---- multi_map_generators/mod.conf | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/multi_map_generators/mmgen_mytest.lua b/multi_map_generators/mmgen_mytest.lua index e830fd3..6a838ae 100644 --- a/multi_map_generators/mmgen_mytest.lua +++ b/multi_map_generators/mmgen_mytest.lua @@ -1,6 +1,3 @@ ---minetest.register_on_mapgen_init(function(mgparams) --- minetest.set_mapgen_params({mgname="singlenode", flags="nolight", flagmask="nolight"}) ---end) mmgen_mytest = {} --multi_map.register_global_3dmap( -- "terrain", @@ -36,7 +33,7 @@ function mmgen_mytest.generate(current_layer, vm, a, data, minp, maxp, offset_mi if yy < 1 then data[vi] = c_stone else - data[vi] = c_grass + data[vi] = c_stone end elseif yy < 1 then local vi = a:index(x, y, z) @@ -46,4 +43,5 @@ function mmgen_mytest.generate(current_layer, vm, a, data, minp, maxp, offset_mi end end end + biomegen.generate_all(data, a, vm, minp, maxp, seed) end diff --git a/multi_map_generators/mod.conf b/multi_map_generators/mod.conf index 65473b8..5bc30ec 100644 --- a/multi_map_generators/mod.conf +++ b/multi_map_generators/mod.conf @@ -1,3 +1,3 @@ name = multi_map_generators description = example mapgens for multi_map -depends = mcl_core, multi_map_core +depends = mcl_core, mcl_init, mcl_mapgen_core, multi_map_core, biomegen