mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 11:54:23 -05:00
Fix nextMapToBeVoted assignment
This commit is contained in:
parent
3b7f68c9d5
commit
7e0f414376
@ -367,7 +367,7 @@ export default class SquadServer extends EventEmitter {
|
||||
try {
|
||||
const currentMap = await this.rcon.getCurrentMap();
|
||||
const nextMap = await this.rcon.getNextMap();
|
||||
const nextMapToBeVoted = nextMap === 'To be voted';
|
||||
const nextMapToBeVoted = nextMap.layer === 'To be voted';
|
||||
|
||||
const currentLayer = await Layers.getLayerByName(currentMap.layer);
|
||||
const nextLayer = nextMapToBeVoted ? null : await Layers.getLayerByName(nextMap.layer);
|
||||
|
Loading…
Reference in New Issue
Block a user