mojira.dev
MC-97208

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

The bug

The Json exception that is thrown when a score component has no name or objective key is misspelled. It should say "at least", not "a least".

A score component needs a least a name and an objective

How to reproduce

/tellraw @s {"score":{}}

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

Linked issues

Attachments

Comments 16

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time.

As for 1.13-pre3 the feedback message reads

An unexpected error occurred trying to execute that command

Confirmed in 1.16.1 using the command:

/tellraw @s {"score":{}}

Can confirm in 20w48a.

Can confirm in 21w03a.

6 more comments

Can confirm in 1.17.

Can confirm in 1.17.1.

Can confirm in 1.19.

Can confirm in 1.19.2.

This has been fixed in 23w40a, it shows a different error message:

[media]

marcono1234

(Unassigned)

Confirmed

Text

exception, json, parsing, score, spelling

Minecraft 16w07a, Minecraft 1.12.2, Minecraft 17w45b, Minecraft 1.13-pre3, 1.16.1, ..., 1.17.1, 1.18.2, 22w16b, 1.19, 1.19.2

Retrieved