mirror of
https://github.com/asofold/CompatNoCheatPlus.git
synced 2024-11-18 11:16:23 +01:00
allow checkIds to be null (i.e. ALL).
This commit is contained in:
parent
3caa3cd96f
commit
1a0e5f4aa6
@ -279,6 +279,7 @@ public final class NCPHookManager {
|
||||
* @return
|
||||
*/
|
||||
public static Integer addHook(Integer[] checkIds, NCPHook hook){
|
||||
if (checkIds == null) checkIds = new Integer[]{NCPHookManager.ALL};
|
||||
Integer hookId = getId(hook);
|
||||
for (Integer checkId : checkIds){
|
||||
addToMappings(checkId, hook);
|
||||
|
Loading…
Reference in New Issue
Block a user