master
Thomas Rudin 2019-05-08 21:16:23 +02:00
parent 1a5e40cb8b
commit ab82788acd
1 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,8 @@
local has_vacuum_mod = minetest.get_modpath("vacuum")
minetest.register_on_generated(function(minp, maxp, seed)
-- default from 6k to 10k
@ -6,6 +10,12 @@ minetest.register_on_generated(function(minp, maxp, seed)
return
end
if has_vacuum_mod and not vacuum.is_mapgen_block_in_space(minp, maxp) then
-- no vacuum there, don't generate planetoids in non-vacuum
return
end
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
local area = VoxelArea:new{MinEdge=emin, MaxEdge=emax}