Skip to content

Commit 0792c40

Browse files
Mikkel Sørensenkristijan-ujevic
authored andcommitted
inverts the if statement and uses ToLower to compare requested name and identifier
1 parent fc1a253 commit 0792c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ public static void SetPlayerName(string name, Action<PlayerNameResponse> onCompl
14161416
return;
14171417
}
14181418

1419-
if (name.Contains(PlayerPrefs.GetString("LootLockerGuestPlayerID"), StringComparison.OrdinalIgnoreCase) && CurrentPlatform.Get() == Platforms.Guest)
1419+
if (CurrentPlatform.Get() == Platforms.Guest && name.ToLower().Contains(PlayerPrefs.GetString("LootLockerGuestPlayerID").ToLower()))
14201420
{
14211421
onComplete?.Invoke(LootLockerResponseFactory.Error<PlayerNameResponse>("Setting the Player name to the Identifier is not allowed"));
14221422
return;

0 commit comments

Comments
 (0)