From 1358878773bd2ba3bcf08389dd55ce8e675bafd3 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Sun, 6 Aug 2017 11:49:27 +0200 Subject: [PATCH] Fixed index for .qn --- src/NadekoBot/Modules/Games/Games.cs | 2 -- src/NadekoBot/Modules/Music/Common/MusicPlayer.cs | 2 +- src/NadekoBot/Modules/Music/Music.cs | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/NadekoBot/Modules/Games/Games.cs b/src/NadekoBot/Modules/Games/Games.cs index 1b8898c9..b1db0acd 100644 --- a/src/NadekoBot/Modules/Games/Games.cs +++ b/src/NadekoBot/Modules/Games/Games.cs @@ -15,8 +15,6 @@ namespace NadekoBot.Modules.Games - Blackjack - Shiritori - Simple RPG adventure - - The nunchi game - - Connect 4 */ public partial class Games : NadekoTopLevelModule { diff --git a/src/NadekoBot/Modules/Music/Common/MusicPlayer.cs b/src/NadekoBot/Modules/Music/Common/MusicPlayer.cs index b578904f..aed23c0e 100644 --- a/src/NadekoBot/Modules/Music/Common/MusicPlayer.cs +++ b/src/NadekoBot/Modules/Music/Common/MusicPlayer.cs @@ -401,7 +401,7 @@ namespace NadekoBot.Modules.Music.Common if (Exited) return -1; Queue.Add(song); - return Queue.Count; + return Queue.Count - 1; } } diff --git a/src/NadekoBot/Modules/Music/Music.cs b/src/NadekoBot/Modules/Music/Music.cs index 5f1a99b3..5589984a 100644 --- a/src/NadekoBot/Modules/Music/Music.cs +++ b/src/NadekoBot/Modules/Music/Music.cs @@ -126,7 +126,7 @@ namespace NadekoBot.Modules.Music try { var embed = new EmbedBuilder().WithOkColor() - .WithAuthor(eab => eab.WithName(GetText("queued_song") + " #" + (index)).WithMusicIcon()) + .WithAuthor(eab => eab.WithName(GetText("queued_song") + " #" + (index + 1)).WithMusicIcon()) .WithDescription($"{songInfo.PrettyName}\n{GetText("queue")} ") .WithFooter(ef => ef.WithText(songInfo.PrettyProvider));