diff --git a/res/generators/default.lua b/res/generators/default.lua index 8198fc49..4ebbbe6c 100644 --- a/res/generators/default.lua +++ b/res/generators/default.lua @@ -7,7 +7,7 @@ biome_parameters = 2 biomes = { plains = { parameters = { - {value=0.5, weight=1.0}, + {value=0.5, weight=0.3}, {value=0.5, weight=0.3}, }, sea_layers = { @@ -27,8 +27,8 @@ biomes = { }, desert = { parameters = { - {value=0.0, weight=0.36}, - {value=0.0, weight=0.4}, + {value=0.0, weight=0.1}, + {value=0.0, weight=0.1}, }, sea_layers = { {block="base:water", height=-1}, @@ -120,9 +120,9 @@ local function _generate_biome_parameters(x, y, w, h, seed, s) tempmap:noise({x, y}, 0.04*s, 5) local hummap = Heightmap(w, h) hummap.noiseSeed = seed + 953 - hummap:noise({x, y}, 0.016*s, 5) - tempmap:pow(2) - hummap:pow(2) + hummap:noise({x, y}, 0.04*s, 5) + tempmap:pow(3) + hummap:pow(3) return tempmap, hummap end diff --git a/src/content/ContentLoader.cpp b/src/content/ContentLoader.cpp index 42e83fbf..0844503d 100644 --- a/src/content/ContentLoader.cpp +++ b/src/content/ContentLoader.cpp @@ -520,7 +520,6 @@ void ContentLoader::load() { create_unit_id(pack->id, file.stem().u8string()); auto& def = builder.generators.create(full); - try { loadGenerator(def, full, name); } catch (const std::runtime_error& err) { diff --git a/src/world/generator/GeneratorDef.hpp b/src/world/generator/GeneratorDef.hpp index 39539c53..c695a5a6 100644 --- a/src/world/generator/GeneratorDef.hpp +++ b/src/world/generator/GeneratorDef.hpp @@ -70,7 +70,7 @@ struct BiomeElementList { /// @brief Entries sorted by weight descending. std::vector entries; /// @brief Sum of weight values - float weightsSum; + float weightsSum = 0.0f; /// @brief Value generation chance float chance;