Fixed spruce trees having sideways log

This commit is contained in:
piebot 2026-03-16 00:29:29 +03:00
parent 0bee09ecea
commit 100d42781f
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,7 @@ bool PineFeature::place(Level *level, Random *random, int x, int y, int z)
for (int hh = 0; hh < treeHeight - 1; hh++)
{
int t = level->getTile(x, y + hh, z);
if (t == 0 || t == Tile::leaves_Id) placeBlock(level, x, y + hh, z, Tile::treeTrunk_Id, TreeTile::DARK_TRUNK);
if (t == 0 || t == Tile::leaves_Id) placeBlock(level, x, y + hh, z, Tile::treeTrunk_Id, TreeTile::SPRUCE_TRUNK);
}
return true;

View file

@ -110,7 +110,7 @@ bool SpruceFeature::place(Level *level, Random *random, int x, int y, int z)
for (int hh = 0; hh < treeHeight - topOffset; hh++)
{
int t = level->getTile(x, y + hh, z);
if (t == 0 || t == Tile::leaves_Id) placeBlock(level, x, y + hh, z, Tile::treeTrunk_Id, TreeTile::DARK_TRUNK);
if (t == 0 || t == Tile::leaves_Id) placeBlock(level, x, y + hh, z, Tile::treeTrunk_Id, TreeTile::SPRUCE_TRUNK);
}
return true;
}