mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 18:23:52 -06:00
fix
This commit is contained in:
parent
d1f3476164
commit
a52b42a8ae
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user