Fix server game actions loading from server

This commit is contained in:
Pat Hartl 2026-06-19 20:17:47 -05:00
parent 0ed8a80fbb
commit a8709cd05b

View file

@ -179,6 +179,11 @@ public static class GameEndpoints
{
var mappedAction = mapper.Map<SDK.Models.Action>(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;