mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-17 18:35:20 +02:00
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'
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user