Skip to content

Commit a5f942c

Browse files
committedApr 12, 2015
Mgv6: Fix taiga, allow pine tree spawning on snowblocks
1 parent 75cbd80 commit a5f942c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

Diff for: ‎src/mapgen_v6.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -944,13 +944,14 @@ void MapgenV6::placeTreesAndJungleGrass()
944944
continue;
945945

946946
v3s16 p(x, y, z);
947-
// Trees grow only on mud and grass
947+
// Trees grow only on mud and grass and snowblock
948948
{
949949
u32 i = vm->m_area.index(p);
950950
content_t c = vm->m_data[i].getContent();
951951
if (c != c_dirt &&
952952
c != c_dirt_with_grass &&
953-
c != c_dirt_with_snow)
953+
c != c_dirt_with_snow &&
954+
c != c_snowblock)
954955
continue;
955956
}
956957
p.Y++;
@@ -959,7 +960,7 @@ void MapgenV6::placeTreesAndJungleGrass()
959960
if (bt == BT_JUNGLE) {
960961
treegen::make_jungletree(*vm, p, ndef, myrand());
961962
} else if (bt == BT_TAIGA) {
962-
treegen::make_pine_tree(*vm, p, ndef, myrand());
963+
treegen::make_pine_tree(*vm, p - v3s16(0, 1, 0), ndef, myrand());
963964
} else if (bt == BT_NORMAL) {
964965
bool is_apple_tree = (myrand_range(0, 3) == 0) &&
965966
getHaveAppleTree(v2s16(x, z));

0 commit comments

Comments
 (0)
Please sign in to comment.