Merge branch 'master' into feat/moe_support
This commit is contained in:
commit
1577e29968
|
@ -12,8 +12,9 @@
|
||||||
* Grand Theft Auto: San Andreas OpenMP - Fixed `state.players` returning an empty array (By @Focus04 #547)
|
* Grand Theft Auto: San Andreas OpenMP - Fixed `state.players` returning an empty array (By @Focus04 #547)
|
||||||
* Perf: Re-write of the `core` class.
|
* Perf: Re-write of the `core` class.
|
||||||
* Perf: Remove many if statements from `GameSpy2`.
|
* Perf: Remove many if statements from `GameSpy2`.
|
||||||
* fix: BeamMP maxplayers that was displaying player count (By @dgibbs64 #551)
|
|
||||||
* Myth of Empires - Added support.
|
* 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
|
## 5.0.0-beta.2
|
||||||
* Fixed support for projects using `require`.
|
* Fixed support for projects using `require`.
|
||||||
|
|
|
@ -7,7 +7,7 @@ export default class beammp extends Core {
|
||||||
master.options = this.options
|
master.options = this.options
|
||||||
const masterState = await master.runOnceSafe()
|
const masterState = await master.runOnceSafe()
|
||||||
const servers = masterState.raw.servers
|
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) {
|
if (!server) {
|
||||||
throw new Error('Server not found in the master list')
|
throw new Error('Server not found in the master list')
|
||||||
|
|
Loading…
Reference in New Issue