Fixed jump boost false positive on Fly C

This commit is contained in:
Dawson
2022-08-31 22:00:39 -04:00
parent fefb942ab4
commit 35345f4515
9 changed files with 39 additions and 12 deletions
@@ -20,7 +20,7 @@ public class MovementUtils {
public static double getJumpHeight(APlayer data) {
float baseHeight = 0.42f;
baseHeight+= data.getPotionHandler().getEffectByType(PotionEffectType.JUMP).map(ef -> ef.getAmplifier() + 1)
baseHeight+= data.getInfo().groundJumpBoost.map(ef -> ef.getAmplifier() + 1)
.orElse(0) * 0.1f;
return baseHeight;