saplings now have all the id 6

This commit is contained in:
Lord Cambion
2026-03-19 22:30:49 +01:00
parent 60c74a768f
commit 8c6da7ea22
13 changed files with 205 additions and 344 deletions
+1 -12
View File
@@ -183,18 +183,7 @@ 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)