Prevent refetching in getPlayerByName suffix

This commit is contained in:
Thomas Smyth 2020-10-03 20:10:59 +01:00 committed by GitHub
parent 72f7c9b30f
commit 516d4512e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = [];