forked from Mirrorlandia_minetest/minetest
Biome-defined dungeon nodes: Use faster biome calculation
This commit is contained in:
parent
f23dd62e2f
commit
9d7335a99c
@ -868,7 +868,7 @@ void MapgenBasic::generateDungeons(s16 max_stone_y)
|
|||||||
|
|
||||||
// Get biome at mapchunk midpoint
|
// Get biome at mapchunk midpoint
|
||||||
v3s16 chunk_mid = node_min + (node_max - node_min) / v3s16(2, 2, 2);
|
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;
|
DungeonParams dp;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user