From da5ef038aa1be0ecdeb0f8a92a92f684f07452fb Mon Sep 17 00:00:00 2001 From: Snaiker Date: Wed, 13 Apr 2022 14:35:37 +0100 Subject: [PATCH] Change --- .../habbohotel/achievements/AchievementManager.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/achievements/AchievementManager.java b/src/main/java/com/eu/habbo/habbohotel/achievements/AchievementManager.java index 8490d30f..78304cd3 100644 --- a/src/main/java/com/eu/habbo/habbohotel/achievements/AchievementManager.java +++ b/src/main/java/com/eu/habbo/habbohotel/achievements/AchievementManager.java @@ -364,13 +364,12 @@ 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; - - HabboBadge b = new HabboBadge(0, badge, 0, habbo); - Emulator.getThreading().run(b); - habbo.getInventory().getBadgesComponent().addBadge(b); - habbo.getClient().sendResponse(new AddUserBadgeComposer(b)); + if (!habbo.getInventory().getBadgesComponent().hasBadge(badge)) { + HabboBadge b = new HabboBadge(0, badge, 0, habbo); + Emulator.getThreading().run(b); + habbo.getInventory().getBadgesComponent().addBadge(b); + habbo.getClient().sendResponse(new AddUserBadgeComposer(b)); + } } } }