mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 11:10:05 +01:00
[BLIND] Add special case to skip vdistsb to prevent a set-back loop.
~ Observed on PaperSpigot 1.7.10
This commit is contained in:
parent
0645922ad7
commit
61d58406f7
@ -1017,8 +1017,16 @@ public class SurvivalFly extends Check {
|
||||
// Skip if the player could step up.
|
||||
if (yDistance > cc.sfStepHeight || !tags.contains("lostground_couldstep")) {
|
||||
if (data.getOrUseVerticalVelocity(yDistance) == null) {
|
||||
vDistanceAboveLimit = Math.max(vDistanceAboveLimit, totalVDistViolation);
|
||||
tags.add("vdistsb");
|
||||
// Last minute special case.
|
||||
if (data.lastYDist == Double.MAX_VALUE && hDistance == 0.0
|
||||
&& yDistance > 0.0 && yDistance < 0.000000005 && Math.abs(totalVDistViolation) < 0.000000005
|
||||
&& !resetFrom && !resetTo && !data.noFallAssumeGround
|
||||
) {
|
||||
// Special case after teleport to in-air (PaperSpigot, might confine further by server type/version).
|
||||
} else {
|
||||
vDistanceAboveLimit = Math.max(vDistanceAboveLimit, totalVDistViolation);
|
||||
tags.add("vdistsb");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user