mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
And make 0 not acceptable
This commit is contained in:
@@ -456,7 +456,7 @@ namespace ArchiSteamFarm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
byte cardsRemaining;
|
byte cardsRemaining;
|
||||||
if (!byte.TryParse(progressMatch.Value, out cardsRemaining)) {
|
if (!byte.TryParse(progressMatch.Value, out cardsRemaining) || (cardsRemaining == 0)) {
|
||||||
Logging.LogNullError(nameof(cardsRemaining), Bot.BotName);
|
Logging.LogNullError(nameof(cardsRemaining), Bot.BotName);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user