chore: redundant recognition of current and next layer

This commit is contained in:
Fantino Davide 2023-12-14 02:41:09 +01:00
parent cc32b01736
commit b3c2567043

View File

@ -527,6 +527,9 @@ export default class SquadServer extends EventEmitter {
this.matchTimeout = info.matchTimeout;
this.gameVersion = info.gameVersion;
if (!this.currentLayer) this.currentLayer = Layers.getLayerByClassname(info.currentLayer);
if (!this.nextLayer) this.nextLayer = Layers.getLayerByClassname(info.nextLayer);
this.emit('UPDATED_A2S_INFORMATION', info);
this.emit('UPDATED_SERVER_INFORMATION', info);
} catch (err) {