mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-07-04 14:25:32 +02: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);
|
CatalogPage page = Emulator.getGameEnvironment().getCatalogManager().getCatalogPage(pageId);
|
||||||
|
|
||||||
if (page != null) {
|
if (page == null || !page.getLayout().equals("roomads"))
|
||||||
|
return;
|
||||||
|
|
||||||
CatalogItem item = page.getCatalogItem(itemId);
|
CatalogItem item = page.getCatalogItem(itemId);
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
if (this.client.getHabbo().getHabboInfo().canBuy(item)) {
|
if (this.client.getHabbo().getHabboInfo().canBuy(item)) {
|
||||||
|
@ -68,4 +70,3 @@ public class BuyRoomPromotionEvent extends MessageHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user