Merge branch 'fix-duplicated-badge' into 'dev'

Change the condition

See merge request morningstar/Arcturus-Community!543
This commit is contained in:
Harmonic 2022-04-14 13:11:06 +00:00
commit ffc24bfb2e

View File

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