Mojira Archive
MC-111729

Read-only scoreboard objectives only initialize when respective value is changed

The bug

Read-only scoreboard objectives are only initialized when the value they are tracking changes. Expected would be that they initialize on creation.

Affected objective criteria

  • air
  • armor
  • food
  • health
  • level
  • xp

How to reproduce

  1. Create a scoreboard objective of the type xp
    /scoreboard objectives add xp xp
    
  2. Check if a value is set by displaying the objective on the sidebar or trying to get the score
    /scoreboard objectives setdisplay sidebar xp
    
    /scoreboard players get @s xp
    

    No value is set

  3. Update your xp points
    /xp add @s 1
    
  4. Repeat step 2
    Now a value is set