Skip to content

Commit

Permalink
Fix playerName acquisition
Browse files Browse the repository at this point in the history
  • Loading branch information
Furimanejo committed Dec 14, 2023
1 parent aed8080 commit 2fbd5a0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ IEnumerator GetPlayerName()
var request = CreateGetRequest(nameURL);
yield return request.SendWebRequest();
if (request.responseCode == 200)
{
playerName = request.downloadHandler.text.Replace("\"", "");
var i = playerName.LastIndexOf('#');
if (i > -1)
playerName = playerName.Substring(0, i);
}
}

IEnumerator GetEvents()
Expand Down

0 comments on commit 2fbd5a0

Please sign in to comment.