Skip to content

Commit

Permalink
Biome-defined cave liquids: Use faster biome calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat authored and SmallJoker committed Apr 26, 2018
1 parent 9d7335a commit bb3baef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapgen/cavegen.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit bb3baef

Please sign in to comment.