mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Requested changes
This commit is contained in:
parent
1175bbca40
commit
a1c973a817
@ -101,10 +101,12 @@ public class ChestSlimefunGuide implements SlimefunGuideImplementation {
|
|||||||
List<Category> categories = new LinkedList<>();
|
List<Category> categories = new LinkedList<>();
|
||||||
|
|
||||||
for (Category category : SlimefunPlugin.getRegistry().getCategories()) {
|
for (Category category : SlimefunPlugin.getRegistry().getCategories()) {
|
||||||
if (((!isSurvivalMode() && category instanceof SeasonalCategory) || !category.isHidden(p)) && (!(category instanceof FlexCategory) || ((FlexCategory) category).isVisible(p, profile, getLayout()))) {
|
if ((!isSurvivalMode() && category instanceof SeasonalCategory) || !category.isHidden(p)) {
|
||||||
|
if (!(category instanceof FlexCategory) || ((FlexCategory) category).isVisible(p, profile, getLayout())) {
|
||||||
categories.add(category);
|
categories.add(category);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return categories;
|
return categories;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user