Noise maps are now made at mapgen init
This doesn't affext the ability to use given maps thoughmaster
parent
ddb7c81410
commit
d3859c48f0
10
init.lua
10
init.lua
|
@ -650,5 +650,15 @@ vcnlib.meta_cache = {
|
|||
__mode = "v",
|
||||
}
|
||||
|
||||
minetest.register_on_mapgen_init(function(map)
|
||||
for k,v in pairs(vcnlib.layers) do
|
||||
for j,l in ipairs(v.biome_maps) do
|
||||
if not l.get3d then
|
||||
v.biome_maps[j] = minetest.get_perlin(l)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
dofile(minetest.get_modpath("vcnlib").."/infotools.lua")
|
||||
dofile(minetest.get_modpath("vcnlib").."/test_layer.lua")
|
||||
|
|
|
@ -46,8 +46,9 @@ vcnlib.new_layer{
|
|||
dimensions = 2,
|
||||
heat = heatmap,
|
||||
humidity = wetmap,
|
||||
PerlinNoise(heatmap),
|
||||
PerlinNoise(wetmap),
|
||||
--multimap maps
|
||||
heatmap,
|
||||
wetmap,
|
||||
},
|
||||
--tollerance levels for each biome map within which biomes are
|
||||
--chosen at random
|
||||
|
|
Loading…
Reference in New Issue