From 516d4512e1fa19bcf4b46404d18f10b3a954754a Mon Sep 17 00:00:00 2001 From: Thomas Smyth Date: Sat, 3 Oct 2020 20:10:59 +0100 Subject: [PATCH 1/2] Prevent refetching in getPlayerByName suffix --- squad-server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squad-server/index.js b/squad-server/index.js index 903e629b..3e7824ee 100644 --- a/squad-server/index.js +++ b/squad-server/index.js @@ -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 = []; From 45f089c94b8ad10a680b5212fa914d3ced99982d Mon Sep 17 00:00:00 2001 From: Thomas Smyth Date: Sat, 3 Oct 2020 20:11:14 +0100 Subject: [PATCH 2/2] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a3452774..3ffe3232 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "SquadJS", - "version": "1.4.7", + "version": "1.4.8", "repository": "https://github.com/Thomas-Smyth/SquadJS.git", "author": "Thomas Smyth ", "license": "BSL-1.0",