fix: workaround for the outdated player list data requested when a new squad is created, causing missing of the squad id parameter

This commit is contained in:
Fantino Davide 2023-12-14 23:20:35 +01:00
parent eaa98bb281
commit de2878d7aa

View File

@ -157,6 +157,8 @@ export default class SquadServer extends EventEmitter {
this.rcon.on('SQUAD_CREATED', async (data) => {
data.player = await this.getPlayerBySteamID(data.playerSteamID, true);
data.player.squadID = data.squadID;
delete data.playerName;
delete data.playerSteamID;