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

@ -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
}
}