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 Map<UUID, Integer> glideBuffer = new HashMap<UUID, Integer>();
public static CheckResult runCheck(Player player, Distance distance) { public static CheckResult runCheck(Player player, Distance distance) {
UUID uuid = player.getUniqueId(); /*UUID uuid = player.getUniqueId();
if(!lastYDelta.containsKey(uuid)) if(!lastYDelta.containsKey(uuid))
lastYDelta.put(uuid, 0.0); lastYDelta.put(uuid, 0.0);
if(!YAxisCheck.lastYcoord.containsKey(uuid)) if(!YAxisCheck.lastYcoord.containsKey(uuid))
@@ -59,15 +59,15 @@ public class GlideCheck {
}else { }else {
glideBuffer.remove(uuid); glideBuffer.remove(uuid);
} }
lastYDelta.put(uuid, math); lastYDelta.put(uuid, math);*/
return PASS; return PASS;
} }
private static double distanceToFall(Location location) { /*private static double distanceToFall(Location location) {
double firstY = location.getY(); double firstY = location.getY();
while (location.clone().add(0, -0.1, 0).getBlock().getType() == Material.AIR) while (location.clone().add(0, -0.1, 0).getBlock().getType() == Material.AIR)
location.add(0, -0.1, 0); location.add(0, -0.1, 0);
return firstY - location.getY(); return firstY - location.getY();
} }*/
} }