20 lines
678 B
Lua
20 lines
678 B
Lua
-- World generation occurs in a separate thread (MapGen Environment).
|
|
-- But for the main thread, the mapgenerator object is also initialized.
|
|
|
|
--core.set_mapgen_setting('chunksize', '{x=2,y=10,z=2}', true)
|
|
|
|
local mapGeneneratorRequire = Mod:getInfo('smc__core__map_generator').require
|
|
|
|
-- Main env init
|
|
local mapGenerator = mapGeneneratorRequire('mapGenerator')
|
|
|
|
-- Async env init
|
|
core.register_mapgen_script(core.get_modpath('smc__core__map_generator')..'/src/asyncInit.lua')
|
|
|
|
|
|
-- --- Register vanilla ores & decorations ---
|
|
-- For now, the generation does not have its own support
|
|
-- for the generation of ores and decorations, so vanilla ones are used.
|
|
|
|
return mapGenerator
|