Skip to content

Commit

Permalink
fix: Assetto Corsa numplayers (#538)
Browse files Browse the repository at this point in the history
* fix Assetto Corsa numplayers

* Update CHANGELOG.md
  • Loading branch information
podrivo authored Feb 10, 2024
1 parent 3a17184 commit e047f9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Factorio (2016) - Added support (By @Vito0912 #527)
* Farming Simulator 22 (2021) - Added support (By @Vito0912 #531)
* Farming Simulator 19 (2018) - Added support (By @Vito0912 #531)
* Assetto Corsa - Fixed how `state.numplayers` is set (By @podrivo #538)

## 5.0.0-beta.2
* Fixed support for projects using `require`.
Expand Down
2 changes: 1 addition & 1 deletion protocols/assettocorsa.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ export default class assettocorsa extends Core {
}
}

state.numplayers = carInfo.Cars.length
state.numplayers = serverInfo.clients
}
}

0 comments on commit e047f9f

Please sign in to comment.