Skip to content

Commit

Permalink
Merge pull request #85 from PandaIN95/main
Browse files Browse the repository at this point in the history
Fix: autoPlay not getting called when previousAutoPlay call didn't add any tracks to queue
  • Loading branch information
Tomato6966 authored Dec 16, 2024
2 parents d6e00eb + b16bba3 commit 0ff2008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ export class LavalinkNode {
}

player.set("internal_skipped", false);
player.set("internal_autoplayStopPlaying", Date.now());
player.set("internal_autoplayStopPlaying", undefined);

if (track && !track?.pluginInfo?.clientData?.previousTrack) { // If there was a current Track already and repeatmode === true, add it to the queue.
player.queue.previous.unshift(track);
Expand Down

0 comments on commit 0ff2008

Please sign in to comment.