From c895fa29a412f47257afb2e469d5959acfe772b0 Mon Sep 17 00:00:00 2001 From: Fantino Davide Date: Wed, 7 Sep 2022 23:07:21 +0200 Subject: [PATCH] quick fix --- mapvote.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mapvote.js b/mapvote.js index c90f76f..36593f1 100644 --- a/mapvote.js +++ b/mapvote.js @@ -145,6 +145,7 @@ export default class MapVote extends BasePlugin { if (baseDataExist && this.options.automaticSeedingMode && ((this.server.nextLayer && this.server.nextLayer.gamemode.toLowerCase() != "seed") || (currentNextLayerExist && this.server.currentLayer.layerid == this.server.nextLayer.layerid))) { const seedingMaps = Layers.layers.filter((l) => l.gamemode.toUpperCase() == "SEED" && (currentNextLayerExist && l.layerid != this.server.currentLayer.layerid && !this.options.layerLevelBlacklist.find((fl) => l.layerid.toLowerCase().startsWith(fl.toLowerCase())))) do { + error = false; const rndMap = randomElement(seedingMaps); if (rndMap && rndMap.layerid) { const nextMap = rndMap.layerid;