Fix jump() bug

This commit is contained in:
Joshua Yuen 2021-08-11 01:00:29 -04:00
parent db3198c797
commit 8a46d1220a

View file

@ -503,7 +503,7 @@ class Queue<T = unknown> {
if (this.#watchDestroyed()) return;
const foundTrack = this.remove(track);
if (!foundTrack) throw new PlayerError("Track not found", ErrorStatusCode.TRACK_NOT_FOUND);
this.tracks.splice(1, 0, foundTrack);
this.tracks.splice(0, 0, foundTrack);
return void this.skip();
}