-
Bug
-
Resolution: Fixed
-
1.15.1, 1.15.2 Pre-Release 1, 1.15.2, 20w06a, 20w07a, 20w09a, 20w10a, 20w11a, 20w12a, 20w13a, 20w14a, 20w16a, 20w17a, 20w18a, 20w22a, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 6, 1.16.2 Release Candidate 1, 1.16.3, 20w45a, 21w03a, 1.16.5, 21w06a, 21w10a, 21w14a, 21w16a, 1.17, 1.17.1, 1.18.1, 1.18.2, 22w12a, 1.19, 1.19.2
-
Confirmed
-
Commands
-
Low
-
Platform
The Bug
Scoreboard display slot names are not case-sensitive, which is inconsistent with item slots, many other arguments, and even scoreboard slots themselves.
To Reproduce
/scoreboard objectives setdisplay sidebar
- No syntax error.
/scoreboard objectives setdisplay SIDEBAR.team.aqua
- Reports syntax error.
/scoreboard objectives setdisplay SIDEBAR
- No syntax error.
Code Analysis
Using yarn's mappings for 1.15.1.
In net/minecraft/scoreboard/Scoreboard#getDisplaySlotId, equalsIgnoreCase is used, instead of simple equals.