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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.15.2 Pre-Release 1
    • Fix Version/s: 1.15.2 Pre-release 2
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      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"}]

        Attachments

          Activity

            People

            Assignee:
            boq [Mojang] Bartosz Bok
            Reporter:
            onnowhere Onnowhere
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: