mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-06 10:27:26 +02:00
Confine PaperSpigot workaround by jumpphase instead of hDistance.
This commit is contained in:
parent
0ccfe9699f
commit
0fe398c233
@ -1018,8 +1018,8 @@ public class SurvivalFly extends Check {
|
|||||||
if (yDistance > cc.sfStepHeight || !tags.contains("lostground_couldstep")) {
|
if (yDistance > cc.sfStepHeight || !tags.contains("lostground_couldstep")) {
|
||||||
if (data.getOrUseVerticalVelocity(yDistance) == null) {
|
if (data.getOrUseVerticalVelocity(yDistance) == null) {
|
||||||
// Last minute special case.
|
// Last minute special case.
|
||||||
if (data.lastYDist == Double.MAX_VALUE && hDistance == 0.0
|
if (data.lastYDist == Double.MAX_VALUE && data.sfJumpPhase == 0
|
||||||
&& yDistance > 0.0 && yDistance < 0.000000005 && Math.abs(totalVDistViolation) < 0.000000005
|
&& Math.abs(totalVDistViolation) < 0.000000005 && yDistance > 0.0 && yDistance < 0.000000005
|
||||||
&& !resetFrom && !resetTo && !data.noFallAssumeGround
|
&& !resetFrom && !resetTo && !data.noFallAssumeGround
|
||||||
) {
|
) {
|
||||||
// Special case after teleport to in-air (PaperSpigot, might confine further by server type/version).
|
// Special case after teleport to in-air (PaperSpigot, might confine further by server type/version).
|
||||||
|
Loading…
Reference in New Issue
Block a user