mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 11:54:23 -05:00
Fix SquadLayers call in updateLayerInformation
This commit is contained in:
parent
39efc08a78
commit
3f9040dc15
@ -195,7 +195,7 @@ export default class SquadServer extends EventEmitter {
|
||||
const layerInfo = await this.rcon.getLayerInfo();
|
||||
|
||||
if (this.layerHistory.length === 0) {
|
||||
const layer = SquadLayers.getLayerByLayerName(layerInfo.currentLayer);
|
||||
const layer = this.squadLayers.getLayerByLayerName(layerInfo.currentLayer);
|
||||
|
||||
this.layerHistory.unshift({ ...layer, time: Date.now() });
|
||||
this.layerHistory = this.layerHistory.slice(0, this.layerHistoryMaxLength);
|
||||
|
Loading…
Reference in New Issue
Block a user