From 581c928570688ed2e683bee79a3725b45fab0966 Mon Sep 17 00:00:00 2001 From: Citrinate Date: Tue, 12 Mar 2024 09:46:16 -0400 Subject: [PATCH] Fix trade error 26 #15 --- BoosterManager/Handlers/InventoryHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BoosterManager/Handlers/InventoryHandler.cs b/BoosterManager/Handlers/InventoryHandler.cs index 5268017..9be79f4 100644 --- a/BoosterManager/Handlers/InventoryHandler.cs +++ b/BoosterManager/Handlers/InventoryHandler.cs @@ -15,7 +15,7 @@ internal static async Task SendItemToMultipleBots(Bot sender, List<(Bot HashSet itemStacks; try { - itemStacks = await sender.ArchiWebHandler.GetInventoryAsync(appID: appID, contextID: contextID).Where(item => itemIdentifier.IsItemMatch(item)).ToHashSetAsync().ConfigureAwait(false); + itemStacks = await sender.ArchiWebHandler.GetInventoryAsync(appID: appID, contextID: contextID).Where(item => item.Tradable && itemIdentifier.IsItemMatch(item)).ToHashSetAsync().ConfigureAwait(false); } catch (Exception e) { sender.ArchiLogger.LogGenericException(e); return Commands.FormatBotResponse(sender, Strings.WarningFailed);