chore: reorganize some setters in assetocorsa

This commit is contained in:
CosminPerRam 2024-02-25 19:48:45 +02:00
parent 331d7bbc53
commit 67e86d3fe8
1 changed files with 3 additions and 3 deletions

View File

@ -20,9 +20,11 @@ export default class assettocorsa extends Core {
state.map = serverInfo.track
state.password = serverInfo.pass
state.gamePort = serverInfo.port
state.numplayers = serverInfo.clients
state.version = state.raw.serverInfo.poweredBy
state.raw.carInfo = carInfo.Cars
state.raw.serverInfo = serverInfo
state.version = state.raw.serverInfo.poweredBy
for (const car of carInfo.Cars) {
if (car.IsConnected) {
@ -35,7 +37,5 @@ export default class assettocorsa extends Core {
})
}
}
state.numplayers = serverInfo.clients
}
}