mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Fixed 3 false positives in water, one with beds and returned to old "getGoodLocation"
This commit is contained in:
1 parent
168c25e5d2
commit
6966582e4c
8 files changed
+42
-14
No files matched your search
@@ -61,7 +61,7 @@ public class WaterWalkCheck {
|
||||
return new CheckResult(Result.FAILED,
|
||||
"tried to hop on water (mY=" + Utilities.roundDouble(movementManager.motionY, 5) + ")");
|
||||
|
||||
double minAbsMotionY = 0.08D;
|
||||
double minAbsMotionY = 0.12D;
|
||||
if (player.hasPotionEffect(PotionEffectType.SPEED))
|
||||
minAbsMotionY += (player.getPotionEffect(PotionEffectType.SPEED).getAmplifier() + 1) * 0.05D;
|
||||
if (checksConfig.isSubcheckEnabled(CheckType.WATER_WALK, "lunge") && blockBeneath.isLiquid()
|
||||
|
||||
Reference in new issue
Block a user