Skip to content

Commit

Permalink
Adjust lostgorund/fastedge to catch more vacc fp.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Mar 13, 2013
1 parent 555ae62 commit a04f4ad
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -749,7 +749,7 @@ private boolean lostGroundFastDescend(final Player player, final PlayerLocation
// TODO: stairs ?
// TODO: Can it be safe to only check to with raised margin ? [in fact should be checked from higher yMin down]
// TODO: Interpolation method (from to)?
if (from.isOnGround(0.5, 0.2, 0) || to.isOnGround(0.5, Math.min(0.2, 0.01 + hDistance), Math.min(0.1, 0.01 + -yDistance))){
if (from.isOnGround(0.5, 0.2, 0) || to.isOnGround(0.5, Math.min(0.3, 0.01 + hDistance), Math.min(0.1, 0.01 + -yDistance))){
// (Usually yDistance should be -0.078)
return applyLostGround(player, from, true, data, "fastedge");
}
Expand Down

0 comments on commit a04f4ad

Please sign in to comment.