From 0e7fd4a1234ce3c43e78f087c3d16e81acc5158c Mon Sep 17 00:00:00 2001 From: Davide Fantino <80767709+fantinodavide@users.noreply.github.com> Date: Fri, 16 Sep 2022 16:12:48 +0200 Subject: [PATCH] hotfix --- mapvote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapvote.js b/mapvote.js index e0ec9a1..39a3c37 100644 --- a/mapvote.js +++ b/mapvote.js @@ -249,8 +249,8 @@ export default class MapVote extends BasePlugin { if (this.server.players.length >= 1 && this.server.players.length < 40) { const seedingMaps = Layers.layers.filter((l) => l.layerid && l.gamemode.toUpperCase() == "SEED" && !this.options.layerLevelBlacklist.find((fl) => l.layerid.toLowerCase().startsWith(fl.toLowerCase()))) + const rndMap = randomElement(seedingMaps); if (this.server.currentLayer) { - const rndMap = randomElement(seedingMaps); if (this.server.currentLayer.gamemode.toLowerCase() != "seed") { if (this.server.players.length <= 5) { const newCurrentMap = rndMap.layerid;