From c229252f7a61e656bdca607090489a6060ca4ce3 Mon Sep 17 00:00:00 2001 From: Rammelkast Date: Fri, 18 Nov 2016 16:38:57 +0100 Subject: [PATCH] Glide is just broken. --- .../anticheat/check/movement/GlideCheck.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/gravitydevelopment/anticheat/check/movement/GlideCheck.java b/src/main/java/net/gravitydevelopment/anticheat/check/movement/GlideCheck.java index 13b1557..7327f33 100644 --- a/src/main/java/net/gravitydevelopment/anticheat/check/movement/GlideCheck.java +++ b/src/main/java/net/gravitydevelopment/anticheat/check/movement/GlideCheck.java @@ -26,7 +26,7 @@ public class GlideCheck { public static Map glideBuffer = new HashMap(); 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(); - } + }*/ }