mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Merge pull request #2857 from Mooy1/features/multi-categories
Did walshys requested changes on multi category pr
This commit is contained in:
commit
e1ccdab16b
@ -61,11 +61,13 @@ public class MultiCategory extends FlexCategory {
|
||||
}
|
||||
|
||||
@Override
|
||||
@ParametersAreNonnullByDefault
|
||||
public boolean isVisible(Player p, PlayerProfile profile, SlimefunGuideMode mode) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ParametersAreNonnullByDefault
|
||||
public void open(Player p, PlayerProfile profile, SlimefunGuideMode mode) {
|
||||
openGuide(p, profile, mode, 1);
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ public class SubCategory extends Category {
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isHidden(Player p) {
|
||||
public final boolean isHidden(@Nonnull Player p) {
|
||||
/*
|
||||
* Sub Categories are always hidden,
|
||||
* they won't show up in the normal guide view.
|
||||
|
@ -1,6 +1,7 @@
|
||||
package io.github.thebusybiscuit.slimefun4.implementation.guide;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.ParametersAreNonnullByDefault;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
@ -73,6 +74,7 @@ public class CheatSheetSlimefunGuide extends SurvivalSlimefunGuide {
|
||||
}
|
||||
|
||||
@Override
|
||||
@ParametersAreNonnullByDefault
|
||||
public void createHeader(Player p, PlayerProfile profile, ChestMenu menu) {
|
||||
super.createHeader(p, profile, menu);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user