aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-06-12 05:07:44 +0100
committerparamat <mat.gregory@virginmedia.com>2015-06-12 08:20:19 +0100
commit0b187ede4bd117d1163951b8eae744d2927da631 (patch)
treef4f850457966e17de0a42bc50be2c96a606c5716 /src
parentc849d32a1063be8d4e7e766341422d3f8d9d7a37 (diff)
downloadminetest-0b187ede4bd117d1163951b8eae744d2927da631.tar.gz
minetest-0b187ede4bd117d1163951b8eae744d2927da631.tar.bz2
minetest-0b187ede4bd117d1163951b8eae744d2927da631.zip
Minimal: Add snow biome and jungleleaves nodes. Add mapgen aliases
Treegen: Remove alias checks from jungletree generation for speed
Diffstat (limited to 'src')
-rw-r--r--src/treegen.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/treegen.cpp b/src/treegen.cpp
index 1c915ca39..a85d88815 100644
--- a/src/treegen.cpp
+++ b/src/treegen.cpp
@@ -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
replaced yet
*/
- content_t c_tree = ndef->getId("mapgen_jungletree");
- content_t c_leaves = 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);
+ MapNode treenode(ndef->getId("mapgen_jungletree"));
+ MapNode leavesnode(ndef->getId("mapgen_jungleleaves"));
PseudoRandom pr(seed);
for (s16 x= -1; x <= 1; x++)