mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-02 08:40:01 +01:00
Fix actions not executing after cancel (careful with |= :) ).
This commit is contained in:
parent
cba9b777f9
commit
a528c08128
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user