Skip to content

Commit

Permalink
Fix unpackgems command
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Feb 27, 2024
1 parent eb644ee commit c9720d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BoosterManager/Handlers/GemHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ internal static async Task<string> UnpackGems(Bot bot) {
foreach (Asset sack in sacks) {
Steam.ExchangeGooResponse? response = await WebRequest.UnpackGems(bot, sack.AssetID, sack.Amount);

if (response == null || !response.Success) {
if (response == null || response.Success != 1) {
return Commands.FormatBotResponse(bot, Strings.WarningFailed);
}
}
Expand Down
2 changes: 1 addition & 1 deletion BoosterManager/Json.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ internal sealed class ExchangeGooResponse {
[JsonInclude]
[JsonPropertyName("success")]
[JsonRequired]
internal bool Success { get; private init; }
internal int Success { get; private init; }

[JsonConstructor]
private ExchangeGooResponse() { }
Expand Down

0 comments on commit c9720d0

Please sign in to comment.