Using wildcard selector * in scoreboard operation creates entries for all tracked entities with scores
When using the wildcard selector * in scoreboard operation, the scoreboard is filled with entries with score 0 for all tracked entities with scores.
Steps to reproduce:
- Create scoreboards
/scoreboard objectives add board1 dummy /scoreboard objectives add board2 dummy
- Fill in some scores
/scoreboard players set player1 board1 10 /scoreboard players set player2 board2 3 /scoreboard players set player3 board2 5
- Tracked entities should show 3 entries
/scoreboard players list
- Scoreboard board2 should have only 2 entries for player2 and player3
/scoreboard objectives setdisplay sidebar board2
- Use wildcard, and set score of player2 to max
/scoreboard players operation player2 board2 > * board2
- Score of player2 is set to max but the scoreboard board2 has now an extra entry for player1 with score 0
player2 5 player3 5 player1 0
Created Issue:
Using wildcard selector * in scoreboard operation creates entries for all tracked entities with scores
When using the wildcard selector * in scoreboard operation, the scoreboard is filled with entries with score 0 for all tracked entities with scores.
Steps to reproduce:
- Create scoreboards
/scoreboard objectives add board1 dummy /scoreboard objectives add board2 dummy
- Fill in some scores
/scoreboard players set player1 board1 10 /scoreboard players set player2 board2 3 /scoreboard players set player3 board2 5
- Tracked entities should show 3 entries
/scoreboard players list
- Scoreboard board2 should have only 2 entries for player2 and player3
/scoreboard objectives setdisplay sidebar board2
- Use wildcard, and set score of player2 to max
/scoreboard players operation player2 board2 > * board2
- Score of player2 is set to max but the scoreboard board2 has now an extra entry for player1 with score 0
player2 5 player3 5 player1 0
Environment
OS: Windows 10
Java: 1.8.0_51 64bit
Added Mojang Priority: Normal
Added Affects Versions: 20w16a
Added Affects Versions: 1.16
Added Affects Versions: 1.16.2-pre3
Added Labels: scoreboard wildcard
Added Affects Versions: 1.17
Added Affects Versions: 24w39a
Doing this in 24w39a, player1 didn't have an entry on the displayed scoreboard. However, doing the following command showed that player1's value was set to 0 when it should say 'Can't get value of board2 for player1; none is set'.