Biome-defined cave liquids: Use faster biome calculation
authorparamat <paramat@users.noreply.github.com>
Thu, 26 Apr 2018 12:21:58 +0000 (13:21 +0100)
committerSmallJoker <mk939@ymail.com>
Thu, 26 Apr 2018 15:28:37 +0000 (17:28 +0200)
src/mapgen/cavegen.cpp

index e7b98e84f5da7e04a30bbb4d6fa2e9a4b998a661..60aefb14dfe80e29df3246006f6101cd178a73c0 100644 (file)
@@ -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;
        }