This commit is contained in:
JustArchi
2017-03-21 00:46:10 +01:00
parent 726d94b0db
commit 20a9121c9b

View File

@@ -2234,6 +2234,10 @@ namespace ArchiSteamFarm {
return FormatBotResponse(Strings.BotLootingTemporarilyDisabled);
}
if (BotConfig.LootableTypes.Count == 0) {
return FormatBotResponse(Strings.BotLootingNoLootableTypes);
}
ulong targetSteamMasterID = GetFirstSteamMasterID();
if (targetSteamMasterID == 0) {
return FormatBotResponse(Strings.BotLootingMasterNotDefined);
@@ -2243,10 +2247,6 @@ namespace ArchiSteamFarm {
return FormatBotResponse(Strings.BotLootingYourself);
}
if (BotConfig.LootableTypes.Count == 0) {
return FormatBotResponse(Strings.BotLootingNoLootableTypes);
}
await Trading.LimitInventoryRequestsAsync().ConfigureAwait(false);
HashSet<Steam.Item> inventory = await ArchiWebHandler.GetMySteamInventory(true, BotConfig.LootableTypes).ConfigureAwait(false);