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

Blindness fog fadeout animation plays even when there's a second Blindness instance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.20.4, 24w07a, 24w09a, 24w11a, 24w13a, 24w14a, 1.21
    • Java: Adoptium 21+35 amd64 (ingame `21 64bit`)
      OS: Void Linux amd64 (kernel 6.6.16_1)
      OpenGL: 3.2.0 NVIDIA 535.113.01
      Renderer: GeForce MX230/PCIe/SSE2
    • Confirmed
    • Commands
    • Low
    • Platform

      The Blindness fog renderer does not consider that other Blindness instances may be shadowed when the fadeout animation is played. What this means is that when there's a shorter Blindness instance that's shadowing a longer one and the shorter one ends, the fog fadeout animation plays, and the player is temporarily able to see beyond the normal range that the longer Blindness normally allows for. This does not happen if a longer instance is shadowing a shorter one and the shadowed, shorter one ends.

      This also happens to the Darkness effect's fog fadeout animation.

      I develop a mod that deals the Blindness effect to the player on the client side, and discovered this bug when playing with other mods. I decided to investigate and discovered it happens in the vanilla version of the game, without any mods.

      Steps to reproduce

      1. Get inflicted with a long lasting Blindness effect instance
      2. Get inflicted with a shorter Blindness effect instance that shadows the first one
      3. Wait out the shorter Blindness instance

            Unassigned Unassigned
            Hibi Hibi
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: