mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
Merge branch 'feature/fix-hc-pages' into 'dev'
Fix HC pages catalogue See merge request morningstar/Arcturus-Community!418
This commit is contained in:
commit
ea730baa11
@ -649,10 +649,17 @@ public class CatalogManager {
|
|||||||
this.catalogPages.get(parentId).childPages.forEachValue(new TObjectProcedure<CatalogPage>() {
|
this.catalogPages.get(parentId).childPages.forEachValue(new TObjectProcedure<CatalogPage>() {
|
||||||
@Override
|
@Override
|
||||||
public boolean execute(CatalogPage object) {
|
public boolean execute(CatalogPage object) {
|
||||||
if (object.getRank() <= habbo.getHabboInfo().getRank().getId() && object.visible) {
|
|
||||||
if (object.isClubOnly() && !habbo.getHabboStats().hasActiveClub()) {
|
boolean isVisiblePage = object.visible;
|
||||||
return false;
|
boolean hasRightRank = object.getRank() <= habbo.getHabboInfo().getRank().getId();
|
||||||
|
|
||||||
|
boolean clubRightsOkay = true;
|
||||||
|
|
||||||
|
if(object.isClubOnly() && !habbo.getHabboInfo().getHabboStats().hasActiveClub()) {
|
||||||
|
clubRightsOkay = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isVisiblePage && hasRightRank && clubRightsOkay) {
|
||||||
pages.add(object);
|
pages.add(object);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user