mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 02:56:09 -04:00
Place dirt under generated trees
This commit is contained in:
parent
caaa89dd2b
commit
786632f936
@ -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++) {
|
for (y = 0; y < height - 1; y++) {
|
||||||
TreeGen_Place(treeX, treeY + y, treeZ, BLOCK_LOG);
|
TreeGen_Place(treeX, treeY + y, treeZ, BLOCK_LOG);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* then place dirt */
|
||||||
|
TreeGen_Place(treeX, treeY - 1, treeZ, BLOCK_DIRT);
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user