Skip to content

Commit

Permalink
fix(Node): fix player not filtering for clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Fab1o0107 committed Dec 27, 2023
1 parent 3dba326 commit a302df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ export class Node {

if (!this.manager.options.moveOnDisconnect) return this.destroy(count);

const players = [...this.manager.players.values()];
const players = [...this.manager.players.values()].filter(player => player.node.name === this.name);

try {
const data = await Promise.allSettled(players.map(player => player.movePlayer()));
Expand Down

0 comments on commit a302df8

Please sign in to comment.