mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Also take into account breaking vehicles and exempt them from movement violations temporarily
This commit is contained in:
1 parent
7977e1c249
commit
c95aee4d9d
3 files changed
+13
-2
No files matched your search
@@ -228,7 +228,7 @@ public class Backend {
|
||||
}
|
||||
|
||||
public boolean checkYSpeed(Player player, double y) {
|
||||
if (!player.isInsideVehicle() && !player.isSleeping() && y > magic.Y_SPEED_MAX && !isDoing(player, velocitized, magic.VELOCITY_TIME) && !player.hasPotionEffect(PotionEffectType.JUMP)) { return true; }
|
||||
if (!isMovingExempt(player) && !player.isInsideVehicle() && !player.isSleeping() && y > magic.Y_SPEED_MAX && !isDoing(player, velocitized, magic.VELOCITY_TIME) && !player.hasPotionEffect(PotionEffectType.JUMP)) { return true; }
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user