Merge branch 'master' into feat/moe_support

This commit is contained in:
CosminPerRam 2024-03-28 03:04:32 +02:00 committed by GitHub
commit 1577e29968
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -12,8 +12,9 @@
* 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)
* Myth of Empires - Added support.
* Fix: BeamMP maxplayers that was displaying player count (By @dgibbs64 #551)
* Fix: BeamMP filter servers by address, not host (By @Rephot #558)
## 5.0.0-beta.2
* Fixed support for projects using `require`.

View File

@ -7,7 +7,7 @@ export default class beammp extends Core {
master.options = this.options
const masterState = await master.runOnceSafe()
const servers = masterState.raw.servers
const server = servers.find(s => s.ip === this.options.host)
const server = servers.find(s => s.ip === this.options.address)
if (!server) {
throw new Error('Server not found in the master list')