Fixed 3 false positives in water, one with beds and returned to old "getGoodLocation"

This commit is contained in:
Rammelkast committed 2020-07-21 13:19:35 +02:00
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()