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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import com.hibiscusmc.hmccosmetics.hooks.Hook;
|
||||
public class HookPlaceholderAPI extends Hook {
|
||||
|
||||
public HookPlaceholderAPI() {
|
||||
super("placeholderapi");
|
||||
super("PlaceholderAPI");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user