magmastream 2.8.6-dev.4 → 2.8.6-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/structures/Node.js +3 -1
- package/package.json +2 -2
package/dist/structures/Node.js
CHANGED
|
@@ -537,7 +537,9 @@ class Node {
|
|
|
537
537
|
async trackEnd(player, track, payload) {
|
|
538
538
|
const { reason } = payload;
|
|
539
539
|
const skipFlag = player.get("skipFlag");
|
|
540
|
-
if (!skipFlag &&
|
|
540
|
+
if (!skipFlag &&
|
|
541
|
+
(player.queue.previous.length === 0 ||
|
|
542
|
+
(player.queue.previous[0] && player.queue.previous[0].track !== player.queue.current?.track))) {
|
|
541
543
|
// Store the current track in the previous tracks queue
|
|
542
544
|
player.queue.previous.push(player.queue.current);
|
|
543
545
|
// Limit the previous tracks queue to maxPreviousTracks
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magmastream",
|
|
3
|
-
"version": "2.8.6-dev.
|
|
3
|
+
"version": "2.8.6-dev.5",
|
|
4
4
|
"description": "A user-friendly Lavalink client designed for NodeJS.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -88,4 +88,4 @@
|
|
|
88
88
|
"homepage": "https://docs.magmastream.com",
|
|
89
89
|
"author": "Abel Purnwasy",
|
|
90
90
|
"license": "Apache-2.0"
|
|
91
|
-
}
|
|
91
|
+
}
|