mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 01:25:20 +02:00
Add flag to control mgv6 temple generation (#14293)
This commit is contained in:
@@ -47,6 +47,7 @@ FlagDesc flagdesc_mapgen_v6[] = {
|
||||
{"snowbiomes", MGV6_SNOWBIOMES},
|
||||
{"flat", MGV6_FLAT},
|
||||
{"trees", MGV6_TREES},
|
||||
{"temples", MGV6_TEMPLES},
|
||||
{NULL, 0}
|
||||
};
|
||||
|
||||
@@ -225,7 +226,8 @@ void MapgenV6Params::writeParams(Settings *settings) const
|
||||
void MapgenV6Params::setDefaultSettings(Settings *settings)
|
||||
{
|
||||
settings->setDefault("mgv6_spflags", flagdesc_mapgen_v6, MGV6_JUNGLES |
|
||||
MGV6_SNOWBIOMES | MGV6_TREES | MGV6_BIOMEBLEND | MGV6_MUDFLOW);
|
||||
MGV6_SNOWBIOMES | MGV6_TREES | MGV6_BIOMEBLEND | MGV6_MUDFLOW |
|
||||
MGV6_TEMPLES);
|
||||
}
|
||||
|
||||
|
||||
@@ -578,7 +580,8 @@ void MapgenV6::makeChunk(BlockMakeData *data)
|
||||
dp.np_alt_wall
|
||||
= NoiseParams(-0.4, 1.0, v3f(40.0, 40.0, 40.0), 32474, 6, 1.1, 2.0);
|
||||
|
||||
if (getBiome(0, v2s16(node_min.X, node_min.Z)) == BT_DESERT) {
|
||||
if ((spflags & MGV6_TEMPLES) &&
|
||||
getBiome(0, v2s16(node_min.X, node_min.Z)) == BT_DESERT) {
|
||||
dp.c_wall = c_desert_stone;
|
||||
dp.c_alt_wall = CONTENT_IGNORE;
|
||||
dp.c_stair = c_stair_desert_stone;
|
||||
|
Reference in New Issue
Block a user