(c08b6301f) Fixed clients not converting achievement identifiers to lower case, making some achievements impossible to unlock in single player.

This commit is contained in:
Joonas Rikkonen
2019-04-07 13:41:21 +03:00
parent 1297127ae2
commit bd174a8769

View File

@@ -377,9 +377,9 @@ namespace Barotrauma
public static void UnlockAchievement(string identifier, bool unlockClients = false, Func<Character, bool> conditions = null)
{
if (CheatsEnabled) return;
identifier = identifier.ToLowerInvariant();
#if SERVER
identifier = identifier.ToLowerInvariant();
if (unlockClients && GameMain.Server != null)
{