Attempt to fix lilypad + swimup.

This commit is contained in:
asofold 2013-02-03 17:05:07 +01:00
parent 52797769a2
commit ab068f0a2d

View File

@ -256,7 +256,7 @@ public class SurvivalFly extends Check {
}
}
else if (data.verticalFreedom <= 0.001 && from.isInLiquid()){
else if (data.verticalFreedom <= 0.001 && from.isInLiquid() && (Math.abs(yDistance) > 0.2 || to.isInLiquid())){
// Swimming...
if (yDistance >= 0){
// TODO: This is more simple to test.