mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Unchecked attempt at fixing 1.8 compat issues
This commit is contained in:
1 parent
7caf7376ba
commit
a59a4baf28
5 files changed
+26
-13
No files matched your search
@@ -68,7 +68,7 @@ public class WaterWalkCheck {
|
||||
|
||||
double minAbsMotionY = 0.12D;
|
||||
if (player.hasPotionEffect(PotionEffectType.SPEED))
|
||||
minAbsMotionY += (player.getPotionEffect(PotionEffectType.SPEED).getAmplifier() + 1) * 0.05D;
|
||||
minAbsMotionY += VersionUtil.getPotionLevel(player, PotionEffectType.SPEED) * 0.05D;
|
||||
if (checksConfig.isSubcheckEnabled(CheckType.WATER_WALK, "lunge") && blockBeneath.isLiquid()
|
||||
&& Utilities.isSurroundedByWater(player)
|
||||
&& Math.abs(movementManager.lastMotionY - movementManager.motionY) > minAbsMotionY
|
||||
|
||||
Reference in new issue
Block a user