9
0
mirror of https://github.com/HibiscusMC/HibiscusCommons.git synced 2025-12-19 15:09:26 +00:00

fix: check if hook is detected in getItem.

This commit is contained in:
LoJoSho
2025-01-13 23:56:48 -06:00
parent e53d4c327a
commit 9a5ce14bfe

View File

@@ -127,7 +127,7 @@ public class Hooks {
if (!isItemHook(split[0])) return null;
Hook hook = getHook(split[0]);
if (!hook.hasEnabledItemHook()) return null;
if (!hook.isActive()) return null;
if (!hook.isDetected() || !hook.isActive()) return null;
return hook.getItem(split[1]);
}