feat(game/farmingsimulator): add response to raw object (#682)

* feat(game/farmingsimulator): add response to raw object

* docs: add changelog line
This commit is contained in:
CosminPerRam 2025-03-19 00:16:47 +02:00 committed by GitHub
parent 1e2ade8d5c
commit e6b959a4d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -6,6 +6,7 @@
* Docs: Counter-Strike 2 does not provide players names, note this and a plugin workaround (#675).
* Fix: Minetest - server filtering replace missing field ip with address (By @hjri #678)
* Docs: Arma Reforger does not provide players data (#680)
* Feat: Farming Simulator add response to raw object (#682)
## 5.2.0
* Fix: Palworld not respecting query output players schema (#666)

View file

@ -35,7 +35,11 @@ export default class farmingsimulator extends Core {
}
})
state.raw.mods = []
state.raw = {
data: request,
mods: []
}
$('Mod').each(function () {
if ($(this).attr('name') !== undefined) {
state.raw.mods.push({
@ -49,7 +53,5 @@ export default class farmingsimulator extends Core {
})
state.version = serverInfo.attr('version')
// TODO: Add state.raw
}
}