[Fix] Refactor project

This commit is contained in:
2026-03-02 12:49:12 +07:00
parent f65976796d
commit f52131f755
44 changed files with 449 additions and 404 deletions
+2 -2
View File
@@ -33,9 +33,9 @@ namespace YachtDice.Shop
private void RebuildCache()
{
_cachedItems = new List<IShopItem>();
for (int i = 0; i < items.Count; i++)
foreach (var t in items)
{
if (items[i] is IShopItem shopItem)
if (t is IShopItem shopItem)
_cachedItems.Add(shopItem);
}
}