Fixed flying false-positives

This commit is contained in:
h31ix committed 2012-09-30 12:50:45 -04:00
1 parent bc468d37ef
commit 8405f4a15e
3 files changed
+6 -6

No files matched your search

@@ -574,8 +574,8 @@ public class Backend
return false;
}
String name = player.getName();
int y1 = (int)distance.fromY();
int y2 = (int)distance.toY();
double y1 = distance.fromY();
double y2 = distance.toY();
if(!isMovingExempt(player) && !Utilities.isInWater(player) && !Utilities.canStand(player.getLocation().getBlock()) && Utilities.cantStandAt(player.getLocation().add(0, -1, 0).getBlock()) && Utilities.cantStandAt(player.getLocation().add(0, -2, 0).getBlock()))
{
Block block = player.getLocation().getBlock();