This commit is contained in:
Snaiker 2022-04-13 14:35:37 +01:00
parent 850f5a3e12
commit da5ef038aa

View File

@ -364,9 +364,7 @@ public class AchievementManager {
if (level.badges != null && level.badges.length > 0) { if (level.badges != null && level.badges.length > 0) {
for (String badge : level.badges) { for (String badge : level.badges) {
if (!badge.isEmpty()) { if (!badge.isEmpty()) {
if (habbo.getInventory().getBadgesComponent().hasBadge(badge)) if (!habbo.getInventory().getBadgesComponent().hasBadge(badge)) {
continue;
HabboBadge b = new HabboBadge(0, badge, 0, habbo); HabboBadge b = new HabboBadge(0, badge, 0, habbo);
Emulator.getThreading().run(b); Emulator.getThreading().run(b);
habbo.getInventory().getBadgesComponent().addBadge(b); habbo.getInventory().getBadgesComponent().addBadge(b);
@ -374,6 +372,7 @@ public class AchievementManager {
} }
} }
} }
}
if (level.perks != null && level.perks.length > 0) { if (level.perks != null && level.perks.length > 0) {
for (String perk : level.perks) { for (String perk : level.perks) {