Unchecked attempt at fixing 1.8 compat issues

This commit is contained in:
Rammelkast committed 2020-08-04 10:16:21 +02:00
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