chore: reorganize some setters in assetocorsa
This commit is contained in:
parent
331d7bbc53
commit
67e86d3fe8
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue