Do apply the cap for lostground_edgeasc1.

This commit is contained in:
asofold 2015-09-10 11:04:54 +02:00
parent 3db2484920
commit ba40cfb6aa

View File

@ -1319,8 +1319,8 @@ public class SurvivalFly extends Check {
}
// TODO: Further / more precise ?
// Third: calculate end points.
x2 += x1;
z2 += z1;
x2 = fMin * x2 + x1;
z2 = fMin * z2 + z1;
// Finally test for ground.
final double xzMargin = Math.round(from.getWidth() * 500.0) / 1000.0; // Bounding box "radius" at some resolution.
// (We don't add another xz-margin here, as the move should cover ground.)