diff --git a/mapvote.js b/mapvote.js index 29a2d98..ab1aaeb 100644 --- a/mapvote.js +++ b/mapvote.js @@ -1126,7 +1126,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)) {