cleanup
parent
1a5e40cb8b
commit
ab82788acd
10
mapgen.lua
10
mapgen.lua
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in New Issue