mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-02-01 20:31:25 +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.
|
// Group specific.
|
||||||
if (checkType.group != null) {
|
if (checkType.group != null) {
|
||||||
final List<NCPHook> hooksGroup = hooksByChecks.get(checkType);
|
final List<NCPHook> hooksGroup = hooksByChecks.get(checkType.group);
|
||||||
if (hooksCheck != null)
|
if (hooksGroup != null)
|
||||||
if (applyHooks(checkType, player, hooksGroup))
|
if (applyHooks(checkType, player, hooksGroup))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user