Skip to content

Commit

Permalink
fix: palworld not respecting response schema (#666)
Browse files Browse the repository at this point in the history
* fix: palworld not respecting schema

* docs: add number to changelog
  • Loading branch information
CosminPerRam authored Jan 21, 2025
1 parent 580c27b commit a62f623
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion GAMES_LIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | |
Expand Down
4 changes: 3 additions & 1 deletion lib/games.js
Original file line number Diff line number Diff line change
Expand Up @@ -2183,7 +2183,9 @@ export const games = {
release_year: 2024,
options: {
port: 8212,
protocol: 'palworld',
protocol: 'palworld'
},
extra: {
doc_notes: 'palworld'
}
},
Expand Down
2 changes: 1 addition & 1 deletion protocols/palworld.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit a62f623

Please sign in to comment.