This commit is contained in:
Fantino Davide 2022-09-08 00:48:18 +02:00
parent d1f3476164
commit a52b42a8ae

View File

@ -147,7 +147,7 @@ export default class MapVote extends BasePlugin {
if (this.server.currentLayer) {
if (this.server.nextLayer) {
if (this.server.currentLayer.gamemode.toLowerCase() != "seed") {
const seedingMaps = Layers.layers.filter((l) => l.layerid && l.gamemode.toUpperCase() == "SEED" && (currentNextLayerExist && l.layerid != this.server.currentLayer.layerid && !this.options.layerLevelBlacklist.find((fl) => l.layerid.toLowerCase().startsWith(fl.toLowerCase()))))
const seedingMaps = Layers.layers.filter((l) => l.layerid && l.gamemode.toUpperCase() == "SEED" && (l.layerid != this.server.currentLayer.layerid && !this.options.layerLevelBlacklist.find((fl) => l.layerid.toLowerCase().startsWith(fl.toLowerCase()))))
const rndMap = randomElement(seedingMaps);
let rndMap2;