From be452270e3f8f17c47217b917b8ed692f3a36137 Mon Sep 17 00:00:00 2001 From: sudokoko Date: Sun, 17 Mar 2024 19:02:06 -0400 Subject: [PATCH] Return bad request instead of forbid when matchmaking is disabled Prevents the game client from reauthenticating every time it requests /match --- .../Controllers/Matching/MatchController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/Matching/MatchController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/Matching/MatchController.cs index 627cf21e..ab18505e 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/Matching/MatchController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/Matching/MatchController.cs @@ -44,7 +44,7 @@ public class MatchController : ControllerBase if (user == null) return this.Forbid(); // Do not allow matchmaking if it has been disabled - if (!ServerConfiguration.Instance.Matchmaking.MatchmakingEnabled) return this.Forbid(); + if (!ServerConfiguration.Instance.Matchmaking.MatchmakingEnabled) return this.BadRequest(); #region Parse match data