diff --git a/mapvote.js b/mapvote.js index 8e3e6a5..d2117c8 100644 --- a/mapvote.js +++ b/mapvote.js @@ -876,7 +876,7 @@ export default class MapVote extends DiscordBasePlugin { ); for (const layer of response.data.Maps) { - if (!Layers.layers.find((e) => e.layerid == layer.layerid)) Layers.layers.push(new Layer(layer)); + if (!Layers.layers.find((e) => e.layerid == layer.rawName)) Layers.layers.push(new Layer(layer)); } this.verbose(1, 'Layer list updated');