Biome-defined cave liquids: Use faster biome calculation

This commit is contained in:
paramat 2018-04-26 13:21:58 +01:00 committed by SmallJoker
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;
} }