Fixed bug that caused part of the moving check to be executed twice.

This commit is contained in:
Evenprime 2011-05-01 02:00:42 +02:00
parent e404a65b0f
commit 11e18e0423
2 changed files with 1 additions and 4 deletions

View File

@ -3,7 +3,7 @@ name: NoCheat
author: Evenprime
main: cc.co.evenprime.bukkit.nocheat.NoCheat
version: 0.9.4
version: 0.9.5
commands:
nocheat:

View File

@ -96,9 +96,6 @@ public class MovingCheck extends Check {
final Location to = event.getTo();
Location from = event.getFrom();
shouldBeIgnored(player, data, from, to);
// The use of event.getFrom() is intentional
if(shouldBeIgnored(player, data, from, to)) {
statisticElapsedTimeNano += System.nanoTime() - startTime;