forked from VoxeLibre/VoxeLibre
Move mapgen config to global
This commit is contained in:
parent
bb54ba53e5
commit
859892d3b2
|
@ -1,7 +1,4 @@
|
|||
|
||||
local data = {}
|
||||
|
||||
local mg = {
|
||||
mcljepc_mapgen = {
|
||||
blocks = {
|
||||
grass = minetest.get_content_id("mcljepc_core:grass"),
|
||||
dirt = minetest.get_content_id("mcljepc_core:cobblestone"),
|
||||
|
@ -10,9 +7,12 @@ local mg = {
|
|||
depth = 64
|
||||
}
|
||||
|
||||
local data = {}
|
||||
|
||||
if minetest.get_mapgen_setting('mg_name') ~= "singlenode" then return end
|
||||
|
||||
minetest.register_on_generated(function(minp, maxp, blockseed)
|
||||
local mg = mcljepc_mapgen
|
||||
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
|
||||
local area = VoxelArea:new{MinEdge = emin, MaxEdge = emax}
|
||||
vm:get_data(data)
|
||||
|
|
Loading…
Reference in New Issue