Minimal: Add snow biome and jungleleaves nodes. Add mapgen aliases

Treegen: Remove alias checks from jungletree generation for speed
This commit is contained in:
paramat 2015-06-12 05:07:44 +01:00
parent 7ba3664b45
commit e2cb2d8a60

View File

@ -656,15 +656,8 @@ void make_jungletree(MMVManip &vmanip, v3s16 p0, INodeDefManager *ndef, int seed
and in games that have saplings; both are deprecated but not and in games that have saplings; both are deprecated but not
replaced yet replaced yet
*/ */
content_t c_tree = ndef->getId("mapgen_jungletree"); MapNode treenode(ndef->getId("mapgen_jungletree"));
content_t c_leaves = ndef->getId("mapgen_jungleleaves"); MapNode leavesnode(ndef->getId("mapgen_jungleleaves"));
if (c_tree == CONTENT_IGNORE)
c_tree = ndef->getId("mapgen_tree");
if (c_leaves == CONTENT_IGNORE)
c_leaves = ndef->getId("mapgen_leaves");
MapNode treenode(c_tree);
MapNode leavesnode(c_leaves);
PseudoRandom pr(seed); PseudoRandom pr(seed);
for (s16 x= -1; x <= 1; x++) for (s16 x= -1; x <= 1; x++)