private async Task RecycleItems() { await Inventory.GetCachedInventory(_client, true); var items = await _inventory.GetItemsToRecycle(_clientSettings); if (items != null && items.Any()) { Logger.Write($"Found {items.Count()} Recyclable {(items.Count() == 1 ? "Item" : "Items")}:", LogLevel.Info); } foreach (var item in items) { await _client.RecycleItem((ItemId)item.Item_, item.Count); Logger.Write($"{item.Count}x {(ItemId)item.Item_}", LogLevel.Recycling); _stats.AddItemsRemoved(item.Count); _stats.UpdateConsoleTitle(_client, _inventory); } _recycleCounter = 0; }