mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fix missing permissions
This commit is contained in:
1 parent
37d580a4ba
commit
12c85b3939
2 files changed
+7
-4
No files matched your search
@@ -86,9 +86,7 @@ public class GlideCheck {
|
||||
&& !player.isSneaking()
|
||||
&& !AntiCheatReloaded.getManager().getBackend().isEating(player)
|
||||
&& !Utilities.isInWater(player)) {
|
||||
// TODO that fallDistance check is a horrible way to prevent a certain false
|
||||
// positive
|
||||
// Needs to be fixed since this only works for slight above ground movements
|
||||
// TODO change this, way too much falses
|
||||
float predicted = calculateNextMotionY(LAST_MOTION_Y.get(player.getUniqueId()).floatValue());
|
||||
float actual = Double.valueOf(motionY).floatValue();
|
||||
float scaledDifference = Math.abs((predicted - actual) + 0.1568f);
|
||||
|
||||
Reference in new issue
Block a user