From 0ae235703db3b170463e43d09c396e282a794d06 Mon Sep 17 00:00:00 2001 From: Skillet Date: Mon, 17 Apr 2023 19:34:42 -0400 Subject: [PATCH] fixes3 --- mapvote.js | 1 - 1 file changed, 1 deletion(-) diff --git a/mapvote.js b/mapvote.js index b66f944..7173b40 100644 --- a/mapvote.js +++ b/mapvote.js @@ -1120,7 +1120,6 @@ export default class MapVote extends DiscordBasePlugin { const rconLayers = (await this.server.rcon.execute('ListLayers'))?.split('\n') || []; rconLayers.shift(); - if (rconLayers.length > 0) Layers.layers = Layers.layers.filter((l) => l != null && rconLayers.includes(l.layerid)) // this.verbose(1, 'RCON Layers', rconLayers.length, this.mapLayer(rconLayers[ 0 ])) for (const layer of rconLayers) { if (!Layers.layers.find((e) => e?.layerid === layer)) {