diff --git a/Facepunch.Steamworks/Client/Achievements.cs b/Facepunch.Steamworks/Client/Achievements.cs index 07e3f04..ce80fd1 100644 --- a/Facepunch.Steamworks/Client/Achievements.cs +++ b/Facepunch.Steamworks/Client/Achievements.cs @@ -55,12 +55,17 @@ public void Refresh() foreach ( var i in unlockedRecently ) { - OnAchievementStateChanged?.Invoke( i ); + OnUnlocked( i ); } unlockedRecently.Clear(); } + internal void OnUnlocked( Achievement a ) + { + OnAchievementStateChanged?.Invoke( a ); + } + public void Dispose() { client = null; @@ -211,6 +216,8 @@ public bool Trigger( bool apply = true ) client.Stats.StoreStats(); } + client.Achievements.OnUnlocked( this ); + return r; }