Mojira Archive
MC-169464

Scoreboard slots are not case-sensitive

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

  1. /scoreboard objectives setdisplay sidebar
    • No syntax error.
  2. /scoreboard objectives setdisplay SIDEBAR.team.aqua
    • Reports syntax error.
  3. /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.

Fixed

[Mod] SPGoding

2020-01-05, 08:31 AM

2023-10-26, 06:45 PM

2023-10-26, 06:41 PM

4

4

Confirmed

Low

Platform

Commands

/scoreboard, /scoreboard-objectives

1.15.1 - 1.19.21.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

23w31a