Ignore stats hooks result of oncheckFailure.

This commit is contained in:
asofold 2012-10-17 19:14:39 +02:00
parent e3be45b986
commit 76dd563271

View File

@ -167,7 +167,7 @@ public final class NCPHookManager {
for (int i = 0; i < hooks.size(); i++) {
final NCPHook hook = hooks.get(i);
try {
if (hook.onCheckFailure(checkType, player, info))
if (hook.onCheckFailure(checkType, player, info) && !(hook instanceof IStats))
return true;
} catch (final Throwable t) {
// TODO: maybe distinguish some exceptions here (interrupted ?).