Skip to content

Commit

Permalink
Fix issues with assumeSprint enabled and blindness effect
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainObvious0 committed May 9, 2020
1 parent 72f26af commit 7651880
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ else if (data.liftOffEnvelope == LiftOffEnvelope.LIMIT_LIQUID

// Simple way to prevent players from sprinting if they have the blindness effect.
// Possibly just merge this with sprintback?
if (sprinting && player.hasPotionEffect(PotionEffectType.BLINDNESS)
if (player.isSprinting() && player.hasPotionEffect(PotionEffectType.BLINDNESS)
&& data.lostSprintCount == 0
&& !pData.hasPermission(Permissions.MOVING_SURVIVALFLY_SPRINTING, player)) {
hDistanceAboveLimit = Math.max(hDistanceAboveLimit, hDistance);
Expand Down

0 comments on commit 7651880

Please sign in to comment.