Fixed issue with achievement badges

main
Tiger 2023-10-21 17:07:07 +02:00
parent b5fbeb7852
commit ce30ee601b
1 changed files with 3 additions and 3 deletions

View File

@ -72,6 +72,7 @@ public class AchievementManager : IAchievementManager
Habbo = session.Habbo, Habbo = session.Habbo,
Code = $"{achievement.Badge}1" Code = $"{achievement.Badge}1"
}; };
session.Habbo.Badges.Add(badge);
} }
else else
{ {
@ -91,11 +92,10 @@ public class AchievementManager : IAchievementManager
Habbo = session.Habbo, Habbo = session.Habbo,
Code = $"{achievement.Badge}1" Code = $"{achievement.Badge}1"
}; };
session.Habbo.Badges.Add(badge);
} }
} }
_badgesRepository.SaveAsync(badge);
session.Habbo.AchievementScore += achievementLevel.Points; session.Habbo.AchievementScore += achievementLevel.Points;
if (achievementLevel.RewardAmount > 0) if (achievementLevel.RewardAmount > 0)