1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Requested changes

This commit is contained in:
poma123 2020-09-30 22:13:41 +02:00
parent 1175bbca40
commit a1c973a817

View File

@ -101,10 +101,12 @@ public class ChestSlimefunGuide implements SlimefunGuideImplementation {
List<Category> categories = new LinkedList<>();
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);
}
}
}
return categories;
}