mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-06 10:27:26 +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(){
|
public void velocityTick(){
|
||||||
// Decrease counts for active.
|
// Decrease counts for active.
|
||||||
for (final Velocity vel : hVelActive){
|
for (final Velocity vel : hVelActive){
|
||||||
vel.actCount --;
|
vel.valCount --;
|
||||||
vel.sum += vel.value;
|
vel.sum += vel.value;
|
||||||
vel.value *= 0.9; // TODO: Actual friction.
|
vel.value *= 0.9; // TODO: Actual friction.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user