mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-26 01:11:24 +01:00
Just a typo.
This commit is contained in:
parent
a0091f92d0
commit
2478ae787b
@ -32,7 +32,8 @@ public class FastHeal extends Check {
|
|||||||
else{
|
else{
|
||||||
// Violation.
|
// Violation.
|
||||||
final double correctedDiff = ((double) time - data.fastHealRefTime) * TickTask.getLag(cc.fastHealInterval);
|
final double correctedDiff = ((double) time - data.fastHealRefTime) * TickTask.getLag(cc.fastHealInterval);
|
||||||
// TODO: Consider using a simple buffer as well (to get closer to the correct interva).
|
// TODO: Consider using a simple buffer as well (to get closer to the correct interval).
|
||||||
|
// TODO: Check if we added a buffer.
|
||||||
if (correctedDiff < cc.fastHealInterval){
|
if (correctedDiff < cc.fastHealInterval){
|
||||||
data.fastHealBuffer -= (cc.fastHealInterval - correctedDiff);
|
data.fastHealBuffer -= (cc.fastHealInterval - correctedDiff);
|
||||||
if (data.fastHealBuffer <= 0){
|
if (data.fastHealBuffer <= 0){
|
||||||
|
Loading…
Reference in New Issue
Block a user