Fix actions not executing after cancel (careful with |= :) ).

This commit is contained in:
asofold 2012-08-29 04:19:45 +02:00
parent cba9b777f9
commit a528c08128

View File

@ -104,7 +104,7 @@ public abstract class Check {
if (getHistory(violationData.player).executeAction(violationData, action, time)) if (getHistory(violationData.player).executeAction(violationData, action, time))
// The execution history said it really is time to execute the action, find out what it is and do // The execution history said it really is time to execute the action, find out what it is and do
// what is needed. // what is needed.
cancel = cancel || action.execute(violationData); if (action.execute(violationData)) cancel = true;
return cancel; return cancel;
} catch (final Exception e) { } catch (final Exception e) {