mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
fix structures choosing
This commit is contained in:
parent
09e9c570c0
commit
dbaea71398
3 changed files with 7 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ struct BiomeElementList {
|
|||
/// @brief Entries sorted by weight descending.
|
||||
std::vector<WeightedEntry> entries;
|
||||
/// @brief Sum of weight values
|
||||
float weightsSum;
|
||||
float weightsSum = 0.0f;
|
||||
/// @brief Value generation chance
|
||||
float chance;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue