mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-03 19:00:30 +02: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.
|
// Calculate the difference between the limit and the time elapsed.
|
||||||
final double difference = 45L - time + data.fastClickLastTime;
|
final double difference = 45L - time + data.fastClickLastTime;
|
||||||
final InventoryConfig cc = InventoryConfig.getConfig(player);
|
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){
|
if (TickTask.getLag(150) > 1.7f){
|
||||||
// Don't increase vl here.
|
// Don't increase vl here.
|
||||||
cancel = vd.hasCancel();
|
cancel = vd.hasCancel();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user