Hooks: Fix for groups of checks.

This commit is contained in:
asofold 2012-08-10 14:35:38 +02:00
parent f679eb5d16
commit fc1875cdbc

View File

@ -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;
}