mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fix #123, fix elytrafly false positive, fix flight false positive when falling, fix speed false positive with slabs, fixed strafe false positive with slabs, fixed TPS formatting issue, improved default config
This commit is contained in:
1 parent
646e906ada
commit
bd1db83a98
8 files changed
+46
-72
No files matched your search
@@ -89,14 +89,10 @@ public class MovementManager {
|
||||
public boolean hasSpeedEffect = false;
|
||||
// If the player had speed effect previous tick
|
||||
public boolean hadSpeedEffect = false;
|
||||
// If the player has a fire resistance effect
|
||||
public boolean hasFireResistanceEffect = false;
|
||||
// If the player had fire resistance effect previous tick
|
||||
public boolean hadFireResistanceEffect = false;
|
||||
// If the player has a bad omen effect
|
||||
public boolean hasBadOmenEffect = false;
|
||||
// If the player had bad omen effect previous tick
|
||||
public boolean hadBadOmenEffect = false;
|
||||
// If the player has a speed increasing effect
|
||||
public boolean hasIncreasingEffect = false;
|
||||
// If the player had a speed increasing effect previous tick
|
||||
public boolean hadIncreasingEffect = false;
|
||||
// Time of last update
|
||||
public long lastUpdate;
|
||||
|
||||
@@ -189,11 +185,8 @@ public class MovementManager {
|
||||
this.hadSpeedEffect = this.hasSpeedEffect;
|
||||
this.hasSpeedEffect = player.hasPotionEffect(PotionEffectType.SPEED);
|
||||
|
||||
this.hadFireResistanceEffect = this.hasFireResistanceEffect;
|
||||
this.hasFireResistanceEffect = player.hasPotionEffect(PotionEffectType.FIRE_RESISTANCE);
|
||||
|
||||
this.hadBadOmenEffect = this.hasBadOmenEffect;
|
||||
this.hasBadOmenEffect = player.hasPotionEffect(PotionEffectType.BAD_OMEN);
|
||||
this.hadIncreasingEffect = this.hasIncreasingEffect;
|
||||
this.hasIncreasingEffect = !player.getActivePotionEffects().isEmpty();
|
||||
|
||||
double lastDistanceSq = Math.sqrt(this.lastDistance.getXDifference() * this.lastDistance.getXDifference()
|
||||
+ this.lastDistance.getZDifference() * this.lastDistance.getZDifference());
|
||||
|
||||
Reference in new issue
Block a user