mojira.dev
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.

Attachments

Comments 10

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w10a. Video attached

Can confirm in 21w14a.

Can confirm in 21w16a.

Can confirm in 1.17.

Can confirm in 1.17.1.

Can confirm in 1.18.1.

Can confirm in 1.18.2 and 22w12a.

Can confirm in 1.19.

Can confirm in 1.19.2.

SPGoding

(Unassigned)

Confirmed

Platform

Low

Commands

/scoreboard, /scoreboard-objectives

1.15.1, 1.15.2 Pre-Release 1, 1.15.2, 20w06a, 20w07a, ..., 1.18.1, 1.18.2, 22w12a, 1.19, 1.19.2

23w31a

Retrieved