forked from Mirrorlandia_minetest/minetest
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;
|
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…
Reference in New Issue
Block a user