mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 07:07:33 +00:00
fix: palworld not respecting response schema (#666)
* fix: palworld not respecting schema * docs: add number to changelog
This commit is contained in:
parent
580c27b661
commit
a62f623134
4 changed files with 6 additions and 3 deletions
|
|
@ -6,6 +6,7 @@
|
|||
* Feat: Farming Simulator 25 (2024) - Added support (#660)
|
||||
* Feat: Exfil (2024) - Added support (#661)
|
||||
* Docs: Valheim numplayers being always 0 on crossplay servers (#668)
|
||||
* Fix: Palworld not respecting query output schema (#666)
|
||||
|
||||
## 5.1.4
|
||||
* Feat: Replaced `punycode` package usage with `url.domainToASCII` (#630).
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@
|
|||
| openarena | OpenArena | |
|
||||
| openttd | OpenTTD | |
|
||||
| painkiller | Painkiller | |
|
||||
| palworld | Palworld | |
|
||||
| palworld | Palworld | [Notes](#palworld) |
|
||||
| pce | Primal Carnage: Extinction | [Valve Protocol](#valve) |
|
||||
| pixark | PixARK | [Valve Protocol](#valve) |
|
||||
| postal2 | Postal 2 | |
|
||||
|
|
|
|||
|
|
@ -2183,7 +2183,9 @@ export const games = {
|
|||
release_year: 2024,
|
||||
options: {
|
||||
port: 8212,
|
||||
protocol: 'palworld',
|
||||
protocol: 'palworld'
|
||||
},
|
||||
extra: {
|
||||
doc_notes: 'palworld'
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export default class palworld extends Core {
|
|||
|
||||
const { players } = await this.makeCall('players')
|
||||
state.numplayers = players.length
|
||||
state.players = players.map(p => p.name)
|
||||
state.players = players.map((player) => ({ name: player.name, raw: player }))
|
||||
state.raw.players = players
|
||||
|
||||
state.raw.settings = await this.makeCall('settings')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue