From a9944ec74d9d3ed3bedd6da6808db096442202ef Mon Sep 17 00:00:00 2001 From: sudokoko Date: Sun, 17 Mar 2024 19:58:14 -0400 Subject: [PATCH] Fix issue where last contact isn't sent if matchmaking is disabled --- .../Controllers/Matching/MatchController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/Matching/MatchController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/Matching/MatchController.cs index ab18505e..326ce3b9 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/Matching/MatchController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/Matching/MatchController.cs @@ -43,6 +43,8 @@ public class MatchController : ControllerBase UserEntity? user = await this.database.UserFromGameToken(token); if (user == null) return this.Forbid(); + await LastContactHelper.SetLastContact(this.database, user, token.GameVersion, token.Platform); + // Do not allow matchmaking if it has been disabled if (!ServerConfiguration.Instance.Matchmaking.MatchmakingEnabled) return this.BadRequest(); @@ -79,8 +81,6 @@ public class MatchController : ControllerBase #endregion - await LastContactHelper.SetLastContact(this.database, user, token.GameVersion, token.Platform); - #region Process match data switch (matchData)