From 3b0c0c9b0ead4f0f3d06753c95701cc43b70ec58 Mon Sep 17 00:00:00 2001 From: Slendy Date: Mon, 26 Jun 2023 18:50:38 -0500 Subject: [PATCH] Fix score parsing for versus scores --- .../Controllers/Slots/ScoreController.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/Slots/ScoreController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/Slots/ScoreController.cs index 3b5f2df2..cfb986b1 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/Slots/ScoreController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/Slots/ScoreController.cs @@ -77,11 +77,7 @@ public class ScoreController : ControllerBase if (score.PlayerIds.Length == 1) { char[] delimiters = { ':', ',', }; - foreach (char delimiter in delimiters) - { - score.PlayerIds = score.PlayerIds[0].Split(delimiter, StringSplitOptions.RemoveEmptyEntries); - } - + score.PlayerIds = score.PlayerIds[0].Split(delimiters).Distinct().ToArray(); } if (score.PlayerIds.Length == 0)