Fix raw player subobject in fivem, assettocorsa, gamespy2 Fixes #222

Clarify nodejs 12 requirement for gamedig 3 Fixes #220
Release 3.0.1
This commit is contained in:
Michael Morrison 2021-04-10 22:27:33 -05:00
parent d65a24dc18
commit fec5a1fac6
6 changed files with 25 additions and 20 deletions

View file

@ -29,7 +29,9 @@ class Gamespy2 extends Core {
{
const body = await this.sendPacket([0, 0xff, 0]);
const reader = this.reader(body);
state.players = this.readFieldData(reader);
for (const rawPlayer of this.readFieldData(reader)) {
state.players.push(rawPlayer);
}
}
// Parse teams