mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Biome-defined cave liquids: Use faster biome calculation
This commit is contained in:
@@ -507,7 +507,7 @@ void CavesRandomWalk::carveRoute(v3f vec, float f, bool randomize_xz)
|
||||
MapNode liquidnode = CONTENT_IGNORE;
|
||||
|
||||
if (bmgn) {
|
||||
Biome *biome = (Biome *)bmgn->calcBiomeAtPoint(cpabs);
|
||||
Biome *biome = (Biome *)bmgn->getBiomeAtPoint(cpabs);
|
||||
if (biome->c_cave_liquid != CONTENT_IGNORE)
|
||||
liquidnode = biome->c_cave_liquid;
|
||||
}
|
||||
|
Reference in New Issue
Block a user