Reduce false positives with survivalfly + swimup (jump, half-steps).

This commit is contained in:
asofold 2013-02-09 00:07:03 +01:00
parent 602b4c70b4
commit 08427fb3f1

View File

@ -264,7 +264,8 @@ public class SurvivalFly extends Check {
// Swimming... // Swimming...
if (yDistance >= 0){ if (yDistance >= 0){
// TODO: This is more simple to test. // TODO: This is more simple to test.
if (!to.isInLiquid()){ if (!to.isInLiquid() || toOnGround && yDistance <= 0.5 || data.sfLastYDist - yDistance <= 0.1){
// TODO: Friction in water...
vAllowedDistance = swimmingSpeed + 0.5; vAllowedDistance = swimmingSpeed + 0.5;
} }
else{ else{