mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fix FastLadder false with elytra, fix speed & flight false positive with trident, fix #122 and fix #119, fix illegalinteract false positive with torches
This commit is contained in:
1 parent
9473781a26
commit
646e906ada
9 files changed
+83
-23
No files matched your search
@@ -34,7 +34,7 @@ import com.rammelkast.anticheatreloaded.util.Utilities;
|
||||
import com.rammelkast.anticheatreloaded.util.VersionUtil;
|
||||
|
||||
/**
|
||||
* @author Rammelkast TODO soulsand speed
|
||||
* @author Rammelkast TODO soulsand speed TODO buffer system
|
||||
*/
|
||||
public class SpeedCheck {
|
||||
|
||||
@@ -46,7 +46,8 @@ public class SpeedCheck {
|
||||
|
||||
public static CheckResult checkXZSpeed(Player player, double x, double z, Location movingTowards) {
|
||||
Backend backend = AntiCheatReloaded.getManager().getBackend();
|
||||
if (isSpeedExempt(player, backend) || player.getVehicle() != null || Utilities.isInWater(player))
|
||||
if (isSpeedExempt(player, backend) || player.getVehicle() != null || Utilities.isInWater(player)
|
||||
|| VersionUtil.isRiptiding(player))
|
||||
return PASS;
|
||||
|
||||
MovementManager movementManager = AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId())
|
||||
@@ -201,6 +202,10 @@ public class SpeedCheck {
|
||||
limit *= 1.4D;
|
||||
if (movementManager.hadSpeedEffect && !movementManager.hasSpeedEffect)
|
||||
limit *= 1.2D;
|
||||
// Adjust for other effects
|
||||
if ((movementManager.hasFireResistanceEffect || movementManager.hasBadOmenEffect)
|
||||
&& movementManager.groundTicks > 3)
|
||||
limit *= 1.2D;
|
||||
if (movementManager.iceInfluenceTicks >= 50) {
|
||||
// When moving off ice
|
||||
if (!Utilities.couldBeOnIce(movingTowards))
|
||||
|
||||
Reference in new issue
Block a user