diff --git a/src/main/java/net/gravitydevelopment/anticheat/check/Backend.java b/src/main/java/net/gravitydevelopment/anticheat/check/Backend.java index edf8eff..b122136 100644 --- a/src/main/java/net/gravitydevelopment/anticheat/check/Backend.java +++ b/src/main/java/net/gravitydevelopment/anticheat/check/Backend.java @@ -258,7 +258,7 @@ public class Backend { } public CheckResult checkYSpeed(Player player, double y) { - if (!isMovingExempt(player) && !player.isInsideVehicle() && !player.isSleeping() && (y > (VersionUtil.isNewYSpeed() ? magic.Y_SPEED_MAX() + 0.05 : magic.Y_SPEED_MAX())) && !isDoing(player, velocitized, magic.VELOCITY_TIME()) && !player.hasPotionEffect(PotionEffectType.JUMP)) { + if (!isMovingExempt(player) && !player.isInsideVehicle() && !player.isSleeping() && (y > (VersionUtil.isNewYSpeed() ? magic.Y_SPEED_MAX() + 0.05 : magic.Y_SPEED_MAX())) && !isDoing(player, velocitized, magic.VELOCITY_TIME()) && !player.hasPotionEffect(PotionEffectType.JUMP) && !VersionUtil.isFlying(player)) { return new CheckResult(CheckResult.Result.FAILED, player.getName() + "'s y speed was too high (speed=" + y + ", max=" + magic.Y_SPEED_MAX() + ")"); } else { return PASS; diff --git a/src/main/java/net/gravitydevelopment/anticheat/util/VersionUtil.java b/src/main/java/net/gravitydevelopment/anticheat/util/VersionUtil.java index 1776dc9..b4a0123 100644 --- a/src/main/java/net/gravitydevelopment/anticheat/util/VersionUtil.java +++ b/src/main/java/net/gravitydevelopment/anticheat/util/VersionUtil.java @@ -45,9 +45,9 @@ public class VersionUtil { public static long getHealTime() { if (getVersion().equals("v1_9_R1") || getVersion().equals("v1_10_R1") || getVersion().equals("v1_11_R1")) { - return 499; + return 495; } else { - return 1999; + return 1995; } } diff --git a/src/main/resources/magic.yml b/src/main/resources/magic.yml index b649a55..47f4112 100644 --- a/src/main/resources/magic.yml +++ b/src/main/resources/magic.yml @@ -40,7 +40,6 @@ FASTPLACE_TIMEMIN: 50 FASTPLACE_ZEROLIMIT: 3 FLIGHT_BLOCK_LIMIT: 15.0 FLIGHT_LIMIT: 150 -HEAL_TIME_MIN: 2000 INSTANT_BREAK_TIME: 2 INVENTORY_CHECK: 10 INVENTORY_TIMEMIN: 50