Fix false positive with horse and jump boost, added "max-setback-distance".

This commit is contained in:
Rammelkast committed 2020-07-29 14:06:49 +02:00
1 parent 9850f48a4e
commit 07f957cf35
8 files changed
+31 -27

No files matched your search

@@ -49,8 +49,10 @@ public class FlightCheck {
public static CheckResult runCheck(Player player, Distance distance) {
if (distance.getYDifference() >= AntiCheatReloaded.getManager().getBackend().getMagic().TELEPORT_MIN()
|| VersionUtil.isFlying(player)) {
// This was a teleport or user is flying/using elytra, so we don't care
|| VersionUtil.isFlying(player) || player.getVehicle() != null
|| AntiCheatReloaded.getManager().getBackend().isMovingExempt(player)) {
// This was a teleport or user is flying/using elytra/in a vehicle, so we don't
// care
// about it.
return PASS;
}