mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Biome-defined cave liquids: Use faster biome calculation
This commit is contained in:
parent
9d7335a99c
commit
bb3baef30f
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ void CavesRandomWalk::carveRoute(v3f vec, float f, bool randomize_xz)
|
||||||
MapNode liquidnode = CONTENT_IGNORE;
|
MapNode liquidnode = CONTENT_IGNORE;
|
||||||
|
|
||||||
if (bmgn) {
|
if (bmgn) {
|
||||||
Biome *biome = (Biome *)bmgn->calcBiomeAtPoint(cpabs);
|
Biome *biome = (Biome *)bmgn->getBiomeAtPoint(cpabs);
|
||||||
if (biome->c_cave_liquid != CONTENT_IGNORE)
|
if (biome->c_cave_liquid != CONTENT_IGNORE)
|
||||||
liquidnode = biome->c_cave_liquid;
|
liquidnode = biome->c_cave_liquid;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue