mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-02-17 03:02:35 +01:00
Fixed BuyRoomPromotion exploit
This commit is contained in:
parent
b971ce1f83
commit
1685065b32
@ -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)) {
|
||||
@ -68,4 +70,3 @@ public class BuyRoomPromotionEvent extends MessageHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user