From e6b959a4d7fbdbe7d5f3583848f6a45a668a70b8 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Wed, 19 Mar 2025 00:16:47 +0200 Subject: [PATCH] feat(game/farmingsimulator): add response to raw object (#682) * feat(game/farmingsimulator): add response to raw object * docs: add changelog line --- CHANGELOG.md | 1 + protocols/farmingsimulator.js | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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 } }