1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

Decoration: Place decorations in mgv6, check if air or cignore before placement

This commit is contained in:
kwolekr
2013-06-17 21:59:42 -04:00
parent 261f559339
commit f18b4872ea
2 changed files with 14 additions and 3 deletions

View File

@@ -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++) {