Fix SquadLayers call in updateLayerInformation

This commit is contained in:
Thomas Smyth 2020-10-05 18:58:24 +01:00
parent 39efc08a78
commit 3f9040dc15

View File

@ -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);