fix(beammp): correct maxplayers that was displaying player count (#551) (#551)

This commit is contained in:
Daniel Gibbs 2024-02-26 15:26:24 +00:00 committed by GitHub
parent 67e86d3fe8
commit b0af081d36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
* Grand Theft Auto: San Andreas OpenMP - Fixed `state.players` returning an empty array (By @Focus04 #547)
* Perf: Re-write of the `core` class.
* Perf: Remove many if statements from `GameSpy2`.
* fix: BeamMP maxplayers that was displaying player count (By @dgibbs64 #551)
## 5.0.0-beta.2
* Fixed support for projects using `require`.

View File

@ -17,7 +17,7 @@ export default class beammp extends Core {
state.map = server.map
state.password = server.password
state.numplayers = parseInt(server.players)
state.maxplayers = parseInt(server.players)
state.maxplayers = parseInt(server.maxplayers)
const players = server.playerslist.split(';')
if (players[players.length - 1] === '') {