Mojira Archive
MC-153406

Score JSON Component Crash in items

The crash occurs when using the raw JSON component "score" improperly in the Name/Lore of an item ( e.g. {"score":"blahblahblah"} )

This crashes the game probably because raw JSON components are not fully checked in strings

Description: Rendering screen
 
java.lang.ClassCastException: com.google.gson.JsonPrimitive cannot be cast to com.google.gson.JsonObject
    at com.google.gson.JsonObject.getAsJsonObject(JsonObject.java:191)
    at jm$a.a(SourceFile:240)
    at jm$a.deserialize(SourceFile:174)
    at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69)
    at zm.a(SourceFile:493)
    at zm.a(SourceFile:518)
    at jm$a.a(SourceFile:393)
    at bcb.a(SourceFile:615)
    at czt.getTooltipFromItem(SourceFile:117)
    at czt.renderTooltip(SourceFile:113)
    at dba.renderTooltip(SourceFile:735)
    at dan.a(SourceFile:181)
    at dba.render(SourceFile:685)
    at dkk.a(SourceFile:686)
    at cvk.e(SourceFile:954)
    at cvk.b(SourceFile:411)
    at net.minecraft.client.main.Main.main(SourceFile:154)

Fixed

DevinF06

[Mojang] Bartosz Bok

2019-05-30, 07:12 AM

2019-09-02, 05:51 PM

2019-07-10, 02:27 PM

3

4

Confirmed

Very Important

Crash

crash, inventory, item, json, score

Minecraft 1.14.2

Minecraft 1.14.4 Pre-Release 4