mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 08:24:23 -05:00
chore: redundant recognition of current and next layer
This commit is contained in:
parent
cc32b01736
commit
b3c2567043
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user