Fixed BuyRoomPromotion exploit

This commit is contained in:
Remco 2021-03-02 12:46:17 +01:00
parent b971ce1f83
commit 1685065b32

View File

@ -30,7 +30,9 @@ public class BuyRoomPromotionEvent extends MessageHandler {
CatalogPage page = Emulator.getGameEnvironment().getCatalogManager().getCatalogPage(pageId);
if (page != null) {
if (page == null || !page.getLayout().equals("roomads"))
return;
CatalogItem item = page.getCatalogItem(itemId);
if (item != null) {
if (this.client.getHabbo().getHabboInfo().canBuy(item)) {
@ -67,5 +69,4 @@ public class BuyRoomPromotionEvent extends MessageHandler {
}
}
}
}
}