Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-169839

Certain potion effects that override lower level effects don't get removed after their duration ends


    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.15.2 Pre-release 2
    • 1.15.2 Pre-Release 1
    • None
    • Confirmed
    • (Unassigned)

      All potion effects that modify attributes are affected by this bug. This should include speed, slowness, strength, weakness, haste (partially), mining fatigue (also partially), luck, unluck, and health boost. If the player currently has a lower level of a potion effect, and receives a potion effect that is higher leveled but runs out before the last potion, the effect will not disappear and will instead continue until the original effect's duration has run out.

      This issue is due to the implemented fix for MC-1541.

      To reproduce:

      1. Run:

      /effect give @s speed 100000 1 true

      2. Run:

      /effect give @s speed 1 100 true

      3. Open your inventory to check that the higher level potion has run out. Notice now that after it runs out, you still have high FOV and your speed is still level 100 when you physically move despite the effect no longer being present.

      4. Run the following command, and notice that your Attributes still indicate you have speed of level 100.

      /data get entity @s Attributes[{Name:"generic.movementSpeed"}]

            boq [Mojang] Bartosz Bok
            onnowhere Onnowhere
            5 Vote for this issue
            2 Start watching this issue