mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-04-11 13:55:41 +02:00
Velocity: Decrease validity counter once activated.
This commit is contained in:
parent
bb38ff5a1b
commit
1ad08b3729
@ -467,7 +467,7 @@ public class MovingData extends ACheckData {
|
||||
public void velocityTick(){
|
||||
// Decrease counts for active.
|
||||
for (final Velocity vel : hVelActive){
|
||||
vel.actCount --;
|
||||
vel.valCount --;
|
||||
vel.sum += vel.value;
|
||||
vel.value *= 0.9; // TODO: Actual friction.
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user