fix: palworld not respecting response schema (#666)

* fix: palworld not respecting schema

* docs: add number to changelog
This commit is contained in:
CosminPerRam 2025-01-21 19:30:01 +02:00 committed by GitHub
parent 580c27b661
commit a62f623134
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 3 deletions

View file

@ -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')