Giving issues #9,#15,#16 Kleenex boxes and committing this test build.

This commit is contained in:
Super Spy committed 2012-05-30 17:17:51 -05:00
1 parent dcc88090af
commit 9986469f4a
3 files changed
+28 -4

No files matched your search

@@ -278,8 +278,15 @@ public class Backend
return false;
}
public boolean checkYAxis(Player player)
public boolean checkYAxis(Player player, Distance distance)
{
//Arrow to the knee check
if(distance.getYDifference() > 400) {
//teleport. so just cancel.
return false;
}
//Arrow to the knee check
if(!player.isFlying())
{
double y1 = player.getLocation().getY();
@@ -341,8 +348,17 @@ public class Backend
return false;
}
public boolean checkFlight(Player player, double y1, double y2)
public boolean checkFlight(Player player, Distance distance)
{
//Arrow to the knee check
if(distance.getYDifference() > 400) {
//teleport. so just cancel.
return false;
}
//Arrow to the knee check
double y1 = distance.fromY();
double y2 = distance.toY();
Block block = player.getLocation().getBlock().getRelative(BlockFace.DOWN);
if(y1 == y2 && !isMovingExempt(player) && player.getVehicle() == null && player.getFallDistance() == 0 && !Utilities.isOnLilyPad(player))
{