Acacia Tree Fixed

This commit is contained in:
Lord Cambion
2026-03-17 20:30:20 +01:00
parent d55ec28291
commit 5e7cf04505
3 changed files with 133 additions and 32 deletions
+14
View File
@@ -183,6 +183,20 @@ bool DyePowderItem::growCrop(shared_ptr<ItemInstance> itemInstance, Level *level
}
return true;
}
if (tile == Tile::sapling2_Id)
{
if(!bTestUseOnOnly)
{
if (!level->isClientSide)
{
if (level->random->nextFloat() < 0.45) static_cast<Sapling2 *>(Tile::tiles[Tile::sapling2_Id])->growTree(level, x, y, z, level->random);
itemInstance->count--;
}
}
return true;
}
else if (tile == Tile::mushroom_brown_Id || tile == Tile::mushroom_red_Id)
{
if(!bTestUseOnOnly)