mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Biome-defined cave liquids: Use faster biome calculation
This commit is contained in:
parent
9d7335a99c
commit
bb3baef30f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user