quick fix

This commit is contained in:
Fantino Davide 2022-09-07 23:03:27 +02:00
parent 2298f7cbc0
commit 44d8043869

View File

@ -146,7 +146,7 @@ export default class MapVote extends BasePlugin {
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 {
const rndMap = randomElement(seedingMaps);
if (rndMap.layerid) {
if (rndMap && rndMap.layerid) {
const nextMap = rndMap.layerid;
if (this.server.players && this.server.players.length < 20) {
this.verbose(1, 'Going into seeding mode.');