mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Merge pull request #1258 from BeyondThe5D/place-dirt-under-trees
Place dirt under generated trees
This commit is contained in:
commit
a7c98ccb25
1 changed files with 5 additions and 1 deletions
|
@ -809,9 +809,13 @@ int TreeGen_Grow(int treeX, int treeY, int treeZ, int height, IVec3* coords, Blo
|
|||
}
|
||||
}
|
||||
|
||||
/* then place trunk */
|
||||
/* place trunk */
|
||||
for (y = 0; y < height - 1; y++) {
|
||||
TreeGen_Place(treeX, treeY + y, treeZ, BLOCK_LOG);
|
||||
}
|
||||
|
||||
/* then place dirt */
|
||||
TreeGen_Place(treeX, treeY - 1, treeZ, BLOCK_DIRT);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue