Skip to content

Commit

Permalink
Use the appropriate variable here.
Browse files Browse the repository at this point in the history
Wondering about Double.MAX_VALUE...
  • Loading branch information
asofold committed Nov 28, 2016
1 parent c80ca6c commit 21505cf
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -200,11 +200,11 @@ public boolean loopFinish(final Player player, final Location loc, final Entity
}
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.
Expand Down

0 comments on commit 21505cf

Please sign in to comment.