Noise maps are now made at mapgen init

This doesn't affext the ability to use given maps though
master
qwertymine3 2015-09-02 19:26:59 +01:00
parent ddb7c81410
commit d3859c48f0
2 changed files with 13 additions and 2 deletions

View File

@ -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")

View File

@ -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