From f20ad72fcf352e153897105eec9d62958739068e Mon Sep 17 00:00:00 2001 From: Sadzurami Date: Sat, 23 Sep 2023 14:39:16 +0300 Subject: [PATCH] fixed filter ignoring items --- BotLooter/Looting/LootClient.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/BotLooter/Looting/LootClient.cs b/BotLooter/Looting/LootClient.cs index 952400a..b710355 100644 --- a/BotLooter/Looting/LootClient.cs +++ b/BotLooter/Looting/LootClient.cs @@ -152,8 +152,7 @@ public async Task TryLoot(TradeOfferUrl tradeOfferUrl, Configuration if (configuration.LootOnlyItemsWithNames.Count > 0) { - // filter by market hash name because original name can be changed - foreach (var description in inventoryData.Descriptions.Where(d => !configuration.LootOnlyItemsWithNames.Contains(d.MarketHashName))) + foreach (var description in inventoryData.Descriptions.Where(d => !configuration.LootOnlyItemsWithNames.Contains(d.MarketName))) { filteredOut.Add(description.Classid); } @@ -161,8 +160,7 @@ public async Task TryLoot(TradeOfferUrl tradeOfferUrl, Configuration if (configuration.IgnoreItemsWithNames.Count > 0) { - // filter by market hash name because original name can be changed - foreach (var description in inventoryData.Descriptions.Where(d => configuration.IgnoreItemsWithNames.Contains(d.MarketHashName))) + foreach (var description in inventoryData.Descriptions.Where(d => configuration.IgnoreItemsWithNames.Contains(d.MarketName))) { filteredOut.Add(description.Classid); }