mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +00:00
Fix speed false positive
This commit is contained in:
1 parent
8b413a382a
commit
fad298086c
1 file changed
+1
-1
@@ -141,7 +141,7 @@ public class SpeedCheck {
|
|||||||
double limit = checksConfig.getDouble(CheckType.SPEED, "airAcceleration", "baseLimit"); // Default 0.3725
|
double limit = checksConfig.getDouble(CheckType.SPEED, "airAcceleration", "baseLimit"); // Default 0.3725
|
||||||
// Slight increase when boxed in
|
// Slight increase when boxed in
|
||||||
if (boxedIn)
|
if (boxedIn)
|
||||||
limit *= 1.05D;
|
limit *= 1.08D;
|
||||||
// Adjust for speed effects
|
// Adjust for speed effects
|
||||||
if (player.hasPotionEffect(PotionEffectType.SPEED))
|
if (player.hasPotionEffect(PotionEffectType.SPEED))
|
||||||
limit += VersionUtil.getPotionLevel(player, PotionEffectType.SPEED) * 0.0225D;
|
limit += VersionUtil.getPotionLevel(player, PotionEffectType.SPEED) * 0.0225D;
|
||||||
|
|||||||
Reference in new issue
Block a user