Glide is just broken.

This commit is contained in:
Rammelkast committed 2016-11-18 16:38:57 +01:00
1 parent 93a5595bb1
commit c229252f7a
1 file changed
+4 -4
@@ -26,7 +26,7 @@ public class GlideCheck {
public static Map<UUID, Integer> glideBuffer = new HashMap<UUID, Integer>();
public static CheckResult runCheck(Player player, Distance distance) {
UUID uuid = player.getUniqueId();
/*UUID uuid = player.getUniqueId();
if(!lastYDelta.containsKey(uuid))
lastYDelta.put(uuid, 0.0);
if(!YAxisCheck.lastYcoord.containsKey(uuid))
@@ -59,15 +59,15 @@ public class GlideCheck {
}else {
glideBuffer.remove(uuid);
}
lastYDelta.put(uuid, math);
lastYDelta.put(uuid, math);*/
return PASS;
}
private static double distanceToFall(Location location) {
/*private static double distanceToFall(Location location) {
double firstY = location.getY();
while (location.clone().add(0, -0.1, 0).getBlock().getType() == Material.AIR)
location.add(0, -0.1, 0);
return firstY - location.getY();
}
}*/
}