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

re add trailing white-spaces
This commit is contained in:
Daniel Gibbs 2024-02-26 15:23:44 +00:00
parent 67e86d3fe8
commit 1ec3c6e459
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
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] === '') {