Mojira Archive
MC-99848

Sprinting isn't canceled upon receiving the blindness effect

The Bug:

Sprinting isn't canceled upon receiving the blindness effect.

The player cannot begin sprinting while having the blindness effect, but their sprinting state isn't canceled when initially receiving the blindess effect.

Steps to Reproduce:

  1. Summon a command block that will give you the blindness effect along with a pressure plate to activate it by using the commands provided below.
    /setblock ~2 ~-1 ~ minecraft:command_block{Command:"effect give @p minecraft:blindness"}
    /setblock ~2 ~ ~ minecraft:oak_pressure_plate
  1. Begin sprinting and activate the command block by running on top of the pressure plate.
  2. Observe the speed at which you are moving once you are given the blindness effect.

Observed Behavior:

Sprinting isn't canceled.

Expected Behavior:

Sprinting would be canceled.

Code Analysis:

Code analysis by Oval can be found in this comment.