mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 17:34:25 -05:00
Merge pull request #169 from Thomas-Smyth/next-map-bug-fix
Fix nextMapToBeVoted assignment
This commit is contained in:
commit
0e1880ab65
@ -367,7 +367,7 @@ export default class SquadServer extends EventEmitter {
|
|||||||
try {
|
try {
|
||||||
const currentMap = await this.rcon.getCurrentMap();
|
const currentMap = await this.rcon.getCurrentMap();
|
||||||
const nextMap = await this.rcon.getNextMap();
|
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 currentLayer = await Layers.getLayerByName(currentMap.layer);
|
||||||
const nextLayer = nextMapToBeVoted ? null : await Layers.getLayerByName(nextMap.layer);
|
const nextLayer = nextMapToBeVoted ? null : await Layers.getLayerByName(nextMap.layer);
|
||||||
|
Loading…
Reference in New Issue
Block a user