diff --git a/mods/CORE/MapGen/src/MapGen/Layer/Cavern.lua b/mods/CORE/MapGen/src/MapGen/Layer/Cavern.lua index f094510..1df9039 100644 --- a/mods/CORE/MapGen/src/MapGen/Layer/Cavern.lua +++ b/mods/CORE/MapGen/src/MapGen/Layer/Cavern.lua @@ -38,7 +38,7 @@ function Cavern:new(name, def) local _noise = {} -- note: must be nil until luanti mapgen objects are loaded. if def.threshold == nil then - def.threshold = 0.0 + def.threshold = 0.1 end local _groups @@ -63,9 +63,9 @@ function Cavern:new(name, def) end function instance:initNoise() - --if not table.is_empty(_noise) then - -- minetest.log('warning', 'Cavern noise has already been initialized. Re-initialization is not recommended.') - --end + if not table.is_empty(_noise) then + minetest.log('warning', 'Cavern noise has already been initialized. Re-initialization is not recommended.') + end _noise = core.get_value_noise(_noiseParams) end diff --git a/mods/ENVIRONMENT/MapGenerator/MapGenerator.lua b/mods/ENVIRONMENT/MapGenerator/MapGenerator.lua index 3ae4045..e9568de 100644 --- a/mods/ENVIRONMENT/MapGenerator/MapGenerator.lua +++ b/mods/ENVIRONMENT/MapGenerator/MapGenerator.lua @@ -17,8 +17,13 @@ dofile(core.get_modpath('smc__api__require')..'/init.lua') -- Mod dofile(core.get_modpath('smc__api__mod')..'/init.lua') +-- TODO: исправить загрузку строковых библиотек (хотя они пока что не юзаются в мапгене) +-- Они не работают из-за get_current_modname внутри utf8 +-- UTF-8 +-- dofile(core.get_modpath('smc__api__utf8')..'/init.lua') + -- String -dofile(core.get_modpath('smc__api__string')..'/init.lua') +-- dofile(core.get_modpath('smc__api__string')..'/init.lua') -- Table dofile(core.get_modpath('smc__api__table')..'/init.lua') @@ -142,6 +147,7 @@ mapGenerator:registerCavern('world', 'cavern1', { minY = -100, maxY = -10, smoothDistance = 20, + threshold = 0.3, noiseParams ={ offset = 0, scale = 1,