Skip to content

Commit

Permalink
[BLIND] Add special case to skip vdistsb to prevent a set-back loop.
Browse files Browse the repository at this point in the history
~ Observed on PaperSpigot 1.7.10
  • Loading branch information
asofold committed Dec 8, 2015
1 parent 0645922 commit 61d5840
Showing 1 changed file with 10 additions and 2 deletions.
Expand Up @@ -1017,8 +1017,16 @@ else if (data.lastYDist >= 0.0 && yDistance <= 0.0 && yDistance > -GRAVITY_MAX -
// 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");
}
}
}
}
Expand Down

0 comments on commit 61d5840

Please sign in to comment.