diff --git a/mapvote.js b/mapvote.js index 63aed60..8e3e6a5 100644 --- a/mapvote.js +++ b/mapvote.js @@ -532,7 +532,7 @@ export default class MapVote extends DiscordBasePlugin { && !(this.options.applyBlacklistToWhitelist && this.options.layerLevelBlacklist.find((fl) => this.getLayersFromStringId(fl).map((e) => e.layerid).includes(l.layerid))) ) ) - && !(this.options.factionsBlacklist.find((f) => [ getTranslation(l.teams[ 0 ].faction), getTranslation(l.teams[ 1 ].faction) ].includes(f))) + && !(this.options.factionsBlacklist.find((f) => [ getTranslation(l.teams[ 0 ]), getTranslation(l.teams[ 1 ]) ].includes(f))) ); for (let i = 1; i <= maxOptions; i++) { const needMoreRAAS = !bypassRaasFilter && rnd_layers.filter((l) => l.gamemode === 'RAAS').length < this.options.minRaasEntries;