9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-30 12:29:16 +00:00

Fix for PAPI in menus

This commit is contained in:
LoJoSho
2023-02-15 16:58:47 -06:00
parent fd50cd058a
commit 63a0bdd0d5
2 changed files with 4 additions and 3 deletions

View File

@@ -66,7 +66,8 @@ public class Hooks {
}
public static boolean isActiveHook(String id) {
if (!hooks.containsKey(getHook(id))) return false;
return hooks.get(getHook(id)).getActive();
Hook hook = getHook(id);
if (hook == null) return false;
return hook.getActive();
}
}

View File

@@ -5,7 +5,7 @@ import com.hibiscusmc.hmccosmetics.hooks.Hook;
public class HookPlaceholderAPI extends Hook {
public HookPlaceholderAPI() {
super("placeholderapi");
super("PlaceholderAPI");
}
@Override