(c08b6301f) Fixed clients not converting achievement identifiers to lower case, making some achievements impossible to unlock in single player.
This commit is contained in:
@@ -377,9 +377,9 @@ namespace Barotrauma
|
|||||||
public static void UnlockAchievement(string identifier, bool unlockClients = false, Func<Character, bool> conditions = null)
|
public static void UnlockAchievement(string identifier, bool unlockClients = false, Func<Character, bool> conditions = null)
|
||||||
{
|
{
|
||||||
if (CheatsEnabled) return;
|
if (CheatsEnabled) return;
|
||||||
|
identifier = identifier.ToLowerInvariant();
|
||||||
|
|
||||||
#if SERVER
|
#if SERVER
|
||||||
identifier = identifier.ToLowerInvariant();
|
|
||||||
|
|
||||||
if (unlockClients && GameMain.Server != null)
|
if (unlockClients && GameMain.Server != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user