Merge pull request #1258 from BeyondThe5D/place-dirt-under-trees

Place dirt under generated trees
This commit is contained in:
UnknownShadow200 2024-09-05 17:26:20 +10:00 committed by GitHub
commit a7c98ccb25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}