mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-09 23:01:27 +00:00
Fix score parsing for versus scores
This commit is contained in:
parent
7c12958d46
commit
3b0c0c9b0e
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue