Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-169464

Scoreboard slots are not case-sensitive

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      Commands
    • Mojang Priority:
      Trivial

      Description

      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

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            SPGoding [Mod] SPGoding
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: