From 62287227c174e75043f6e39f23830fee7f7803f6 Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Sun, 20 Jun 2021 16:07:18 +0545 Subject: [PATCH] revert last change --- src/Structures/Queue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index 6b08bf6..870e158 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -358,7 +358,7 @@ class Queue { if (this.options.leaveOnEnd) this.destroy(); this.player.emit("queueEnd", this); } else { - if (this.tracks.length > 1 || this.repeatMode !== QueueRepeatMode.AUTOPLAY) { + if (this.repeatMode !== QueueRepeatMode.AUTOPLAY) { if (this.repeatMode === QueueRepeatMode.TRACK) return void this.play(Util.last(this.previousTracks), { immediate: true }); if (this.repeatMode === QueueRepeatMode.QUEUE) this.tracks.push(Util.last(this.previousTracks)); const nextTrack = this.tracks.shift();