diff --git a/CHANGELOG.md b/CHANGELOG.md index 875bfd1..e4fafad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/protocols/farmingsimulator.js b/protocols/farmingsimulator.js index 7adbad4..e058228 100644 --- a/protocols/farmingsimulator.js +++ b/protocols/farmingsimulator.js @@ -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 } }