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

docs(Hooks): getActive -> isActive

This commit is contained in:
Craftinators
2023-03-17 16:03:18 -04:00
parent 4f8a32c3e8
commit 4d8d43ee2a

View File

@@ -67,13 +67,13 @@ public class Hooks {
if (!isItemHook(split[0])) return null;
Hook hook = getHook(split[0]);
if (!hook.hasEnabledItemHook()) return null;
if (!hook.getActive()) return null;
if (!hook.isActive()) return null;
return hook.getItem(split[1]);
}
public static boolean isActiveHook(String id) {
Hook hook = getHook(id);
if (hook == null) return false;
return hook.getActive();
return hook.isActive();
}
}