diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/Backend.java b/src/main/java/com/rammelkast/anticheatreloaded/check/Backend.java index 8d5cf95..0cb3773 100644 --- a/src/main/java/com/rammelkast/anticheatreloaded/check/Backend.java +++ b/src/main/java/com/rammelkast/anticheatreloaded/check/Backend.java @@ -278,7 +278,8 @@ public class Backend { public CheckResult checkYSpeed(Player player, double y) { if (!isMovingExempt(player) && !player.isInsideVehicle() && !player.isSleeping() && (y > magic.Y_SPEED_MAX()) && !isDoing(player, velocitized, magic.VELOCITY_TIME()) - && !player.hasPotionEffect(PotionEffectType.JUMP) && !VersionUtil.isFlying(player)) { + && !player.hasPotionEffect(PotionEffectType.JUMP) && !VersionUtil.isFlying(player) + && !Utilities.isSlime(player.getLocation().getBlock())) { return new CheckResult(CheckResult.Result.FAILED, "y speed was too high (speed=" + y + ", max=" + magic.Y_SPEED_MAX() + ")"); } else { diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/Utilities.java b/src/main/java/com/rammelkast/anticheatreloaded/util/Utilities.java index f34c0e3..a010095 100644 --- a/src/main/java/com/rammelkast/anticheatreloaded/util/Utilities.java +++ b/src/main/java/com/rammelkast/anticheatreloaded/util/Utilities.java @@ -118,7 +118,7 @@ public final class Utilities { public static boolean isNotNearSlime(Block block) { return !isSlime(block.getRelative(BlockFace.NORTH)) && !isSlime(block.getRelative(BlockFace.EAST)) - && !isSlime(block.getRelative(BlockFace.SOUTH)) && !isSlime(block.getRelative(BlockFace.WEST)); + && !isSlime(block.getRelative(BlockFace.SOUTH)) && !isSlime(block.getRelative(BlockFace.WEST)) && !isSlime(block.getRelative(BlockFace.DOWN)); } /** diff --git a/src/main/resources/magic.yml b/src/main/resources/magic.yml index 62e9519..f73dd38 100644 --- a/src/main/resources/magic.yml +++ b/src/main/resources/magic.yml @@ -246,7 +246,7 @@ MOREPACKETS_LIMIT: 30 MOREPACKETS_AVERAGE_PING: 80 # Maximum amount zero-velocity moments before a player is suspected # Increase this in case of false positives -VELOCITY_MAX_FLAGS: 5 +VELOCITY_MAX_FLAGS: 3 # The maximum angle difference allowed when attacking # Increase this in case of false positives KILLAURA_MAX_ANGLE_DIFFERENCE: 50