Mojira Archive
MC-149682

Client crashes when using a translate text component with invalid "with" data in custom name for item

The bug

The client crashes when trying to resolve the text component. This happens when the game tries to cast a JsonPrimitive or a JsonObject to a JsonArray.

How to reproduce

  1. Execute the following command:
    /give @s minecraft:acacia_boat{display:{Name:'{"translate":"record.nowPlaying","with":"test"}'}}
    
  2. Hover over the boat that now is in your inventory, or select it in the hotbar
    Your client crashes

This can also be done through data modify set but not with just a tellraw

Cannot Reproduce

Kroppeb

2019-04-25, 10:30 PM

2020-06-06, 02:45 AM

2020-06-06, 02:45 AM

6

3

Confirmed

Crash

Minecraft 1.14, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2

-