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

Spelling mistake for Json parsing exception for score with missing name or objective

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 16w07a, Minecraft 1.12.2, Minecraft 17w45b, Minecraft 1.13-pre3
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed

      Description

      The bug

      The Json exception that is thrown when a score component has no name or objective key is misspelled.

      A score component needs a least a name and an objective
      

      How to reproduce

      /setblock ~ ~ ~ standing_sign{Text1:"[\"Test: \",{\"score\":{\"objective\":\"test\",\"not-name\":\"@p\"}}]",Text2:"[\"\"]",Text3:"[\"\"]",Text4:"[\"\"]"} replace
      

      Affected class and method

      Minecraft 1.8 decompiled using MCP

      Class: net.minecraft.util.IChatComponent.Serializer
      Method: public IChatComponent deserialize(JsonElement p_deserialize_1_, Type p_deserialize_2_, JsonDeserializationContext p_deserialize_3_)

      Minecraft 16w07a

      Class: eu.a
      Method: public eu a(JsonElement ?, Type ?, JsonDeserializationContext ?) throws JsonParseException

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: