mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Decoration: Place decorations in mgv6, check if air or cignore before placement
This commit is contained in:
parent
261f559339
commit
f18b4872ea
2 changed files with 14 additions and 3 deletions
|
@ -445,6 +445,12 @@ void MapgenV6::makeChunk(BlockMakeData *data) {
|
|||
// Generate some trees, and add grass, if a jungle
|
||||
if (flags & MG_TREES)
|
||||
placeTreesAndJungleGrass();
|
||||
|
||||
// Generate the registered decorations
|
||||
for (unsigned int i = 0; i != emerge->decorations.size(); i++) {
|
||||
Decoration *deco = emerge->decorations[i];
|
||||
deco->placeDeco(this, blockseed + i, node_min, node_max);
|
||||
}
|
||||
|
||||
// Generate the registered ores
|
||||
for (unsigned int i = 0; i != emerge->ores.size(); i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue