1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Cavegen: Remove CavesV6 dependency on Mapgen

This commit is contained in:
kwolekr 2016-05-10 13:21:13 -04:00
parent bf25837617
commit a605d69092
3 changed files with 97 additions and 62 deletions

View file

@ -1066,9 +1066,10 @@ void MapgenV6::generateCaves(int max_stone_y)
}
for (u32 i = 0; i < caves_count + bruises_count; i++) {
bool large_cave = (i >= caves_count);
CavesV6 cave(this, &ps, &ps2, large_cave);
CavesV6 cave(ndef, &gennotify, water_level, c_water_source, c_lava_source);
cave.makeCave(node_min, node_max, max_stone_y);
bool large_cave = (i >= caves_count);
cave.makeCave(vm, node_min, node_max, &ps, &ps2,
large_cave, max_stone_y, heightmap);
}
}