mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +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)) {
|
||||
@ -67,5 +69,4 @@ public class BuyRoomPromotionEvent extends MessageHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user