mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-02 00:29:59 +01:00
Hooks: Fix for groups of checks.
This commit is contained in:
parent
f679eb5d16
commit
fc1875cdbc
@ -388,8 +388,8 @@ public final class NCPHookManager {
|
||||
|
||||
// Group specific.
|
||||
if (checkType.group != null) {
|
||||
final List<NCPHook> hooksGroup = hooksByChecks.get(checkType);
|
||||
if (hooksCheck != null)
|
||||
final List<NCPHook> hooksGroup = hooksByChecks.get(checkType.group);
|
||||
if (hooksGroup != null)
|
||||
if (applyHooks(checkType, player, hooksGroup))
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user