Fix missing permissions

This commit is contained in:
Rammelkast committed 2020-06-02 20:56:03 +02:00
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);