Exempt players who have been teleported or just joined from being caught as sprinting

This commit is contained in:
h31ix committed 2012-12-20 19:56:02 -05:00
1 parent ef9c5c1455
commit 1f6e4175aa
1 file changed
+1 -1
@@ -382,7 +382,7 @@ public class Backend
public boolean checkSprintStill(Player player, Location from, Location to)
{
return player.isSprinting() && from.getX() == to.getX() && from.getZ() == to.getZ();
return !isMovingExempt(player) && player.isSprinting() && from.getX() == to.getX() && from.getZ() == to.getZ();
}
public boolean checkWaterWalk(Player player, double x, double y, double z)