Correct vl for fastclick to include current violation.

This commit is contained in:
asofold 2013-02-08 09:49:38 +01:00
parent df4705d0d8
commit a12ffcf916

View File

@ -51,7 +51,7 @@ public class FastClick extends Check {
// Calculate the difference between the limit and the time elapsed.
final double difference = 45L - time + data.fastClickLastTime;
final InventoryConfig cc = InventoryConfig.getConfig(player);
final ViolationData vd = new ViolationData(this, player, data.fastClickVL, difference, cc.fastClickActions);
final ViolationData vd = new ViolationData(this, player, data.fastClickVL + difference, difference, cc.fastClickActions);
if (TickTask.getLag(150) > 1.7f){
// Don't increase vl here.
cancel = vd.hasCancel();