mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Biome API / cavegen: Add definable cave liquid for a biome (#7192)
Add 'node_cave_liquid' as a new field in biome registration. If field is absent cave liquids fall back to classic behaviour.
This commit is contained in:
parent
077f231111
commit
32d456bd2d
8 changed files with 40 additions and 12 deletions
|
@ -62,6 +62,7 @@ BiomeManager::BiomeManager(Server *server) :
|
|||
b->m_nodenames.emplace_back("mapgen_river_water_source");
|
||||
b->m_nodenames.emplace_back("mapgen_stone");
|
||||
b->m_nodenames.emplace_back("ignore");
|
||||
b->m_nodenames.emplace_back("ignore");
|
||||
m_ndef->pendNodeResolve(b);
|
||||
|
||||
add(b);
|
||||
|
@ -321,4 +322,5 @@ void Biome::resolveNodeNames()
|
|||
getIdFromNrBacklog(&c_river_water, "mapgen_river_water_source", CONTENT_AIR);
|
||||
getIdFromNrBacklog(&c_riverbed, "mapgen_stone", CONTENT_AIR);
|
||||
getIdFromNrBacklog(&c_dust, "ignore", CONTENT_IGNORE);
|
||||
getIdFromNrBacklog(&c_cave_liquid, "ignore", CONTENT_IGNORE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue