From a8709cd05b34b2896a08d387f35e2dec620d9faf Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Fri, 19 Jun 2026 20:17:47 -0500 Subject: [PATCH] Fix server game actions loading from server --- LANCommander.Server/Endpoints/GameEndpoints.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LANCommander.Server/Endpoints/GameEndpoints.cs b/LANCommander.Server/Endpoints/GameEndpoints.cs index 31d38de8..72a25b92 100644 --- a/LANCommander.Server/Endpoints/GameEndpoints.cs +++ b/LANCommander.Server/Endpoints/GameEndpoints.cs @@ -179,6 +179,11 @@ public static class GameEndpoints { var mappedAction = mapper.Map(serverAction); + // Server actions are attached to the server, not the game, so their GameId is + // empty. Stamp the owning game's id so the launcher associates the action with + // the installed game instead of filtering it out. + mappedAction.GameId = game.Id; + if (!String.IsNullOrWhiteSpace(server.Host)) mappedAction.Variables["ServerHost"] = server.Host;