add setting to switch off biomegen
This commit is contained in:
parent
bc7e9b58df
commit
b74cfc0142
|
@ -31,6 +31,8 @@ multi_map.generators = {}
|
|||
-- When no suitable generator is found, this generator is used as a fallback
|
||||
multi_map.fallback_generator = nil
|
||||
|
||||
local use_biomegen = biomegen and minetest.settings:get_bool("multi_map_use_biomegen",true)
|
||||
|
||||
local vm_data = {} -- reuse the massive VoxelManip memory buffer instead of creating on every on_generate()
|
||||
|
||||
-- Set the current layer which the mapgen is generating
|
||||
|
@ -394,7 +396,7 @@ minetest.register_on_generated(function(minp, maxp,seed)
|
|||
else
|
||||
for i,f in ipairs(t) do
|
||||
f.generator(multi_map.current_layer, vm, area, vm_data, minp, maxp, offset_minp, offset_maxp, f.arguments,seed)
|
||||
if biomegen and ( not f.arguments or ( f.arguments and not f.arguments.nobiomoes ) ) then
|
||||
if use_biomegen and ( not f.arguments or ( f.arguments and not f.arguments.nobiomoes ) ) then
|
||||
biomegen.generate_all(vm_data, area, vm, minp, maxp, seed)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue