mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
Merge branch 'fix-duplicated-badge' into 'dev'
Change the condition See merge request morningstar/Arcturus-Community!543
This commit is contained in:
commit
ffc24bfb2e
@ -364,13 +364,12 @@ 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);
|
||||||
|
Emulator.getThreading().run(b);
|
||||||
HabboBadge b = new HabboBadge(0, badge, 0, habbo);
|
habbo.getInventory().getBadgesComponent().addBadge(b);
|
||||||
Emulator.getThreading().run(b);
|
habbo.getClient().sendResponse(new AddUserBadgeComposer(b));
|
||||||
habbo.getInventory().getBadgesComponent().addBadge(b);
|
}
|
||||||
habbo.getClient().sendResponse(new AddUserBadgeComposer(b));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user