Merge branch 'dev' into 'dev'

Fix issue Buy furniture with a badge attached

See merge request morningstar/Arcturus-Community!462
This commit is contained in:
ArpyAge 2022-01-18 22:21:35 +00:00
commit cffa8af52e

View File

@ -1079,12 +1079,9 @@ 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);