From 073b832065bca992685f5683599e768168dea914 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 17 May 2023 17:34:23 +0200 Subject: [PATCH] Fixed .rps 'amount' field, closes #415 --- src/NadekoBot/Modules/Gambling/Gambling.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Gambling/Gambling.cs b/src/NadekoBot/Modules/Gambling/Gambling.cs index 225ff59a8..c08f97e76 100644 --- a/src/NadekoBot/Modules/Gambling/Gambling.cs +++ b/src/NadekoBot/Modules/Gambling/Gambling.cs @@ -840,7 +840,7 @@ public partial class Gambling : GamblingModule else if (result.Result == RpsResultType.Win) { if ((long)result.Won > 0) - embed.AddField(GetText(strs.won), N(amount.Value)); + embed.AddField(GetText(strs.won), N((long)result.Won)); msg = GetText(strs.rps_win(ctx.User.Mention, GetRpsPick(pick),