diff --git a/Game/Achievements/AchievementManager.cs b/Game/Achievements/AchievementManager.cs index a47c73f..a4e6008 100644 --- a/Game/Achievements/AchievementManager.cs +++ b/Game/Achievements/AchievementManager.cs @@ -72,10 +72,11 @@ public class AchievementManager : IAchievementManager Habbo = session.Habbo, Code = $"{achievement.Badge}1" }; + session.Habbo.Badges.Add(badge); } else { - var currentBadge = + var currentBadge = session.Habbo.Badges.SingleOrDefault(b => b.Code == $"{achievement.Badge}{habboAchievement.Level - 1}"); @@ -91,10 +92,9 @@ public class AchievementManager : IAchievementManager Habbo = session.Habbo, Code = $"{achievement.Badge}1" }; + session.Habbo.Badges.Add(badge); } } - - _badgesRepository.SaveAsync(badge); session.Habbo.AchievementScore += achievementLevel.Points;