From e29358ab3b9c489a77d0fa02d0718bb6c72be600 Mon Sep 17 00:00:00 2001 From: Skillet Date: Mon, 22 May 2023 21:43:32 -0400 Subject: [PATCH] bug fix layerfilterWlist --- mapvote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapvote.js b/mapvote.js index 9202c11..e849baf 100644 --- a/mapvote.js +++ b/mapvote.js @@ -377,7 +377,7 @@ export default class MapVote extends DiscordBasePlugin { layerfilterWlist(layers){ if(this.options.layerFilteringMode.toLowerCase() === "whitelist"){ - const rawwl = layers.filter((l) => this.options.layerLevelWhitelist.find((fl) => this.getLayersFromStringId(fl).map((e => e.layerid).includes(l.layerid)))); + const rawwl = layers.filter((l) => this.options.layerLevelWhitelist.find((fl) => this.getLayersFromStringId(fl).map((e) => e.layerid).includes(l.layerid))); if(this.options.applyBlacklistToWhitelist) return rawwl.filter((l) => !(this.options.layerLevelBlacklist.find((fl) => this.getLayersFromStringId(fl).map((e) => e.layerid).includes(l.layerid)))); else return rawwl; } else {