mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 14:04:25 -05:00
Prevent refetching in getPlayerByName suffix
This commit is contained in:
parent
72f7c9b30f
commit
516d4512e1
@ -127,7 +127,7 @@ export default class Server extends EventEmitter {
|
||||
matchingPlayers.push(player);
|
||||
}
|
||||
|
||||
if (matchingPlayers.length === 0) {
|
||||
if (matchingPlayers.length === 0 && suffix === false) {
|
||||
await this.updatePlayers();
|
||||
|
||||
matchingPlayers = [];
|
||||
|
Loading…
Reference in New Issue
Block a user