revert last change

This commit is contained in:
Snowflake107 2021-06-20 16:07:18 +05:45
parent a2f273d001
commit 62287227c1

View file

@ -358,7 +358,7 @@ class Queue<T = unknown> {
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();