From d4ae5a477b6171e2eea56f5576e7f7f886548ab4 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sun, 23 Apr 2023 11:54:05 -0700 Subject: [PATCH] debug connected list --- structures/DayzArmbands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structures/DayzArmbands.js b/structures/DayzArmbands.js index 47097c0..9add2ce 100644 --- a/structures/DayzArmbands.js +++ b/structures/DayzArmbands.js @@ -143,7 +143,7 @@ class DayzArmbands extends Client { const playerTemplate = /(.*) \| Player \"(.*)\" \(id=(.*) pos=<(.*)>\)/g; s.map(p => p.connected = false) // make all connections false - for (let i = lines.length; i > 0; i--) { + for (let i = lines.length - 1; i > 0; i--) { if (lines[i].includes('PlayerList log:')) { for (let j = i + 1; i < lines.length; j++) { let line = lines[j];