aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-04-12 05:11:16 +0100
committerparamat <mat.gregory@virginmedia.com>2015-04-12 05:52:41 +0100
commita5f942c3c02090e527c4f8e4e85f860328329cf2 (patch)
tree594d106ee1c09d5135c2a34faa97f488a65ec803 /src
parent75cbd80e5b78af52eae2ec9960d408e64d33adca (diff)
downloadminetest-a5f942c3c02090e527c4f8e4e85f860328329cf2.tar.gz
minetest-a5f942c3c02090e527c4f8e4e85f860328329cf2.tar.bz2
minetest-a5f942c3c02090e527c4f8e4e85f860328329cf2.zip
Mgv6: Fix taiga, allow pine tree spawning on snowblocks
Diffstat (limited to 'src')
-rw-r--r--src/mapgen_v6.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp
index 92b9c7af4..6fcd457fb 100644
--- a/src/mapgen_v6.cpp
+++ b/src/mapgen_v6.cpp
@@ -944,13 +944,14 @@ void MapgenV6::placeTreesAndJungleGrass()
continue;
v3s16 p(x, y, z);
- // Trees grow only on mud and grass
+ // Trees grow only on mud and grass and snowblock
{
u32 i = vm->m_area.index(p);
content_t c = vm->m_data[i].getContent();
if (c != c_dirt &&
c != c_dirt_with_grass &&
- c != c_dirt_with_snow)
+ c != c_dirt_with_snow &&
+ c != c_snowblock)
continue;
}
p.Y++;
@@ -959,7 +960,7 @@ void MapgenV6::placeTreesAndJungleGrass()
if (bt == BT_JUNGLE) {
treegen::make_jungletree(*vm, p, ndef, myrand());
} else if (bt == BT_TAIGA) {
- treegen::make_pine_tree(*vm, p, ndef, myrand());
+ treegen::make_pine_tree(*vm, p - v3s16(0, 1, 0), ndef, myrand());
} else if (bt == BT_NORMAL) {
bool is_apple_tree = (myrand_range(0, 3) == 0) &&
getHaveAppleTree(v2s16(x, z));