Fixed issue with achievement badges
parent
b5fbeb7852
commit
ce30ee601b
|
@ -72,6 +72,7 @@ public class AchievementManager : IAchievementManager
|
|||
Habbo = session.Habbo,
|
||||
Code = $"{achievement.Badge}1"
|
||||
};
|
||||
session.Habbo.Badges.Add(badge);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -91,11 +92,10 @@ public class AchievementManager : IAchievementManager
|
|||
Habbo = session.Habbo,
|
||||
Code = $"{achievement.Badge}1"
|
||||
};
|
||||
session.Habbo.Badges.Add(badge);
|
||||
}
|
||||
}
|
||||
|
||||
_badgesRepository.SaveAsync(badge);
|
||||
|
||||
session.Habbo.AchievementScore += achievementLevel.Points;
|
||||
|
||||
if (achievementLevel.RewardAmount > 0)
|
||||
|
|
Loading…
Reference in New Issue