mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-26 10:28:05 +01:00
Correct vl for fastclick to include current violation.
This commit is contained in:
parent
df4705d0d8
commit
a12ffcf916
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user