From bb84fbe523f299e4df9575fc1e67e70fafac52ed Mon Sep 17 00:00:00 2001 From: Davide Fantino <80767709+fantinodavide@users.noreply.github.com> Date: Wed, 15 Mar 2023 21:06:29 +0100 Subject: [PATCH] fix: just another try to fix layer list update --- mapvote.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mapvote.js b/mapvote.js index fe664da..94d62fa 100644 --- a/mapvote.js +++ b/mapvote.js @@ -1042,8 +1042,9 @@ export default class MapVote extends DiscordBasePlugin { const rconLayers = (await this.server.rcon.execute('ListLayers'))?.split('\n') || []; rconLayers.shift(); + console.log(rconLayers); if (rconLayers.length > 0) Layers.layers = Layers.layers.filter((l) => l != null && rconLayers.includes(l.layerid)) - // this.verbose(1, 'RCON Layers', this.mapLayer(rconLayers[ 0 ])) + this.verbose(1, 'RCON Layers', rconLayers.length, this.mapLayer(rconLayers[ 0 ])) if (sheetCsv.length > 0) { for (const layer of rconLayers) { if (!Layers.layers.find((e) => e?.layerid == layer)) {