mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-27 14:13:11 +02:00
Use the appropriate variable here.
Wondering about Double.MAX_VALUE...
This commit is contained in:
parent
c80ca6c8a6
commit
21505cf4fa
@ -200,11 +200,11 @@ public class Direction extends Check {
|
||||
}
|
||||
else if (off > 0.1) {
|
||||
// Add the overall violation level of the check.
|
||||
data.directionVL += context.minViolation;
|
||||
data.directionVL += off;
|
||||
|
||||
// Execute whatever actions are associated with this check and the violation level and find out if we should
|
||||
// cancel the event.
|
||||
cancel = executeActions(player, data.directionVL, context.minViolation, cc.directionActions).willCancel();
|
||||
cancel = executeActions(player, data.directionVL, off, cc.directionActions).willCancel();
|
||||
|
||||
if (cancel) {
|
||||
// Deal an attack penalty time.
|
||||
|
Loading…
Reference in New Issue
Block a user