Skip to content
Permalink
Browse files

Biome-defined cave liquids: Use faster biome calculation

  • Loading branch information...
paramat authored and SmallJoker committed Apr 26, 2018
1 parent 9d7335a commit bb3baef30f8afcfec046050b1ef3b606a2c1248a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mapgen/cavegen.cpp
@@ -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;
}

0 comments on commit bb3baef

Please sign in to comment.
You can’t perform that action at this time.