mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
Glide is just broken.
This commit is contained in:
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();
|
||||||
}
|
}*/
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user