From 50db342807635374afa39354189fc07747973207 Mon Sep 17 00:00:00 2001 From: Citrinate Date: Mon, 1 Jan 2024 17:25:35 -0500 Subject: [PATCH] Fix lootitems command not working --- BoosterManager/Commands.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BoosterManager/Commands.cs b/BoosterManager/Commands.cs index 5c217a9..8961d34 100644 --- a/BoosterManager/Commands.cs +++ b/BoosterManager/Commands.cs @@ -246,11 +246,11 @@ internal static class Commands { return await ResponseSendItemToBot(access, steamID, Utilities.GetArgsAsText(args, 1, ","), Asset.SteamAppID.ToString(), Asset.SteamCommunityContextID.ToString(), ItemIdentifier.GemIdentifier.ToString()).ConfigureAwait(false); case "LOOTITEMS" or "LOOTITEM" or "ALOOTITEMS" or "ALOOTITEM" when args.Length > 4: - return await ResponseSendItemToBot(access, steamID, args[2], args[2], args[3], Utilities.GetArgsAsText(args, 4, " ")).ConfigureAwait(false); + return await ResponseSendItemToBot(access, steamID, args[1], args[2], args[3], Utilities.GetArgsAsText(args, 4, " ")).ConfigureAwait(false); case "ULOOTITEMS" or "ULOOTITEM" when args.Length > 4: - return await ResponseSendItemToBot(access, steamID, args[2], args[2], args[3], Utilities.GetArgsAsText(args, 4, " "), marketable: false).ConfigureAwait(false); + return await ResponseSendItemToBot(access, steamID, args[1], args[2], args[3], Utilities.GetArgsAsText(args, 4, " "), marketable: false).ConfigureAwait(false); case "MLOOTITEMS" or "MLOOTITEM" when args.Length > 4: - return await ResponseSendItemToBot(access, steamID, args[2], args[2], args[3], Utilities.GetArgsAsText(args, 4, " "), marketable: true).ConfigureAwait(false); + return await ResponseSendItemToBot(access, steamID, args[1], args[2], args[3], Utilities.GetArgsAsText(args, 4, " "), marketable: true).ConfigureAwait(false); case "LOOTKEYS" or "LOOTKEY": return await ResponseSendItemToBot(access, steamID, Utilities.GetArgsAsText(args, 1, ","), KeyHandler.KeyAppID.ToString(), KeyHandler.KeyContextID.ToString(), ItemIdentifier.KeyIdentifier.ToString()).ConfigureAwait(false);