feat: Add support for AltvMP (#588)

* feat: Add Minetest support using serverlist

* Allow for connect to be assigned,

* Add serverId to the string args

* Add altvmp implementation

* Added altv to games.

* Add changelog entry

* Update CHANGELOG.md with state.connect
This commit is contained in:
James Causon 2024-07-17 16:10:06 +01:00 committed by GitHub
parent 38229cde3b
commit bdb819d0f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 88 additions and 3 deletions

View file

@ -84,7 +84,7 @@ export default class Core extends EventEmitter {
state.queryPort = options.port
// because lots of servers prefix with spaces to try to appear first
state.name = (state.name || '').trim()
state.connect = `${state.gameHost || options.host || options.address}:${state.gamePort || options.port}`
state.connect = state.connect || `${state.gameHost || options.host || options.address}:${state.gamePort || options.port}`
state.ping = this.shortestRTT
delete state.gameHost