Rename some vars to reduce the mess in the mapgen code

This commit is contained in:
Niklp
2024-10-14 19:12:36 +02:00
parent 458536dbe6
commit c15250a03a
2 changed files with 47 additions and 48 deletions

View File

@ -135,14 +135,14 @@ function translate_biome_defs(def, treename, index)
local deco_def = {
name = treename .. "_" .. index,
deco_type = "simple",
place_on = def.place_on or def.surface,
place_on = def.place_on,
sidelen = 16,
fill_ratio = def.fill_ratio or 0.001,
--biomes eventually?
y_min = def.min_elevation,
y_max = def.max_elevation,
spawn_by = def.near_nodes,
num_spawn_by = def.near_nodes_count,
spawn_by = def.spawn_by,
num_spawn_by = def.num_spawn_by,
decoration = "moretrees:"..treename.."_sapling_ongen"
}