Skip to content

Commit

Permalink
Fix: Add handling for number type for GameBanana credits field.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Apr 8, 2023
1 parent af1ab36 commit d61ddf5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,11 @@ public override GameBananaCredit Read(ref Utf8JsonReader reader, Type typeToConv

while (reader.TokenType != JsonTokenType.EndArray)
{
values.Add(reader.GetString()!);
if (reader.TokenType == JsonTokenType.Number)
values.Add(reader.GetInt64()!.ToString());
else
values.Add(reader.GetString()!);

reader.Read();
}

Expand Down

0 comments on commit d61ddf5

Please sign in to comment.