revert last change
This commit is contained in:
parent
a2f273d001
commit
62287227c1
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue