[Fix] Refactor project
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user