mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 07:07:33 +00:00
chore: reorganize some setters in assetocorsa
This commit is contained in:
parent
331d7bbc53
commit
67e86d3fe8
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue