Biome-defined dungeon nodes: Use faster biome calculation
authorparamat <paramat@users.noreply.github.com>
Thu, 26 Apr 2018 12:33:12 +0000 (13:33 +0100)
committerSmallJoker <mk939@ymail.com>
Thu, 26 Apr 2018 15:27:06 +0000 (17:27 +0200)
src/mapgen/mapgen.cpp

index 9562482c804d70afe006e58cc30a4a1253deed28..9aaead79d23c36b5b57f2647be19e5614ca41cad 100644 (file)
@@ -868,7 +868,7 @@ void MapgenBasic::generateDungeons(s16 max_stone_y)
 
        // Get biome at mapchunk midpoint
        v3s16 chunk_mid = node_min + (node_max - node_min) / v3s16(2, 2, 2);
-       Biome *biome = (Biome *)biomegen->calcBiomeAtPoint(chunk_mid);
+       Biome *biome = (Biome *)biomegen->getBiomeAtPoint(chunk_mid);
 
        DungeonParams dp;