summaryrefslogtreecommitdiff
path: root/src/mapgen/mg_biome.h
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2019-05-18 21:13:14 +0100
committerGitHub <noreply@github.com>2019-05-18 21:13:14 +0100
commitb1b40fef16a17f4a6da7d4268af8f0921dbe829c (patch)
tree5052f3e27b6f0177fe44f18be2c2e36d1623dfe2 /src/mapgen/mg_biome.h
parent6cb6aea969032e43395ddbad09233e7e20830909 (diff)
downloadminetest-b1b40fef16a17f4a6da7d4268af8f0921dbe829c.tar.gz
minetest-b1b40fef16a17f4a6da7d4268af8f0921dbe829c.tar.bz2
minetest-b1b40fef16a17f4a6da7d4268af8f0921dbe829c.zip
Allow multiple cave liquids in a biome definition (#8481)
This allows games to specify biome cave liquids and avoid the old hardcoded behaviour, but preserves the ability to have multiple cave liquids in one biome, such as lava and water. When multiple cave liquids are defined by the biome definition, make each entire cave use a randomly chosen liquid, instead of every small cave segment using a randomly chosen liquid. Plus an optimisation: Don't place nodes if cave liquid is defined as 'air'
Diffstat (limited to 'src/mapgen/mg_biome.h')
-rw-r--r--src/mapgen/mg_biome.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapgen/mg_biome.h b/src/mapgen/mg_biome.h
index 1f60f7bac..ee148adbc 100644
--- a/src/mapgen/mg_biome.h
+++ b/src/mapgen/mg_biome.h
@@ -52,7 +52,7 @@ public:
content_t c_river_water;
content_t c_riverbed;
content_t c_dust;
- content_t c_cave_liquid;
+ std::vector<content_t> c_cave_liquid;
content_t c_dungeon;
content_t c_dungeon_alt;
content_t c_dungeon_stair;