Fix Buy furniture with a badge attatched already own

This commit is contained in:
brenoepic 2022-01-18 21:54:36 +00:00
parent be3207eca0
commit afcffa96a3

View File

@ -1079,13 +1079,10 @@ public class CatalogManager {
}
}
if (badgeFound) {
if (badgeFound && item.getBaseItems().size() == 1) {
habbo.getClient().sendResponse(new AlertPurchaseFailedComposer(AlertPurchaseFailedComposer.ALREADY_HAVE_BADGE));
if (item.getBaseItems().size() == 1) {
return;
}
}
UserCatalogItemPurchasedEvent purchasedEvent = new UserCatalogItemPurchasedEvent(habbo, item, itemsList, totalCredits, totalPoints, badges);
Emulator.getPluginManager().fireEvent(purchasedEvent);