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

Boss health bar malfunctioning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.16.5
    • None
    • Unconfirmed
    • (Unassigned)

      Steps to reproduce

      Run the following commands

      /bossbar add a 1
      /bossbar set a value 0
      /bossbar set a players @a
      /execute store result bossbar a max run data get entity @p a
      /bossbar set a max 10
      /bossbar set a value 5

      A bossbar max is set to zero, should in code: bossbar max > 0 ? bossbar max : 1. Code debugged as 0 / 0 = NaN (bossbar value / bossbar max = return value)

            Unassigned Unassigned
            THEHP2735 bughunter21 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: