mojira.dev
MC-31574

tellraw translate on string with arguments without a with argument crashes server.

Using this command:

/tellraw @p {translate:multiplayer.player.joined}

Will crash your own client.

Using /tellraw @a should crash all clients (crashes mine, couldn't test with other people right now... Sorry). The server deals with it fine since it's the clients which do the translations...

Problem: strings that expect parameters need a "with" parameter too, if you provide it, everything works fine!

Linked issues

MC-29611 Hopper: dm: Invalid index 1 requested for TranslatableComponent{key='stat.entityKilledBy', args=[TranslatableComponent{key='entity.Sheep.name', args=[], sibli Resolved MC-30093 Hopper: dk: Invalid index 1 requested for TranslatableComponent{key='stat.entityKilledBy', args=[TranslatableComponent{key='entity.Silverfish.name', args=[], Resolved MC-31519 Hopper: dk: Invalid index 0 requested for TranslatableComponent{key='commands.generic.player.notFound', args=[], siblings=[], style=Style{hasParent=true, colo Resolved MC-31812 Hopper: eu: Invalid index 0 requested for TranslatableComponent{key='multiplayer.player.joined', args=[], siblings=[], style=Style{hasParent=false, color=null Resolved MC-32062 Hopper: ev: Invalid index 0 requested for TranslatableComponent{key='multiplayer.player.joined', args=[], siblings=[], style=Style{hasParent=false, color=§e, Resolved

Attachments

Comments 6

Description: Showing chat
eu: Invalid index 0 requested for TranslatableComponent{key='multiplayer.player.joined', args=[], siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}}
	at et.a(SourceFile:110)
	at et.b(SourceFile:89)
	at et.g(SourceFile:48)
	at et.iterator(SourceFile:147)
	at com.google.common.collect.Lists.newArrayList(Lists.java:125)
	at axv.a(SourceFile:141)

Is this still a concern in the current Minecraft version 1.7.2 / Launcher version 1.3.4 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Confirmed for 1.7.2 and 13w48b, both in launcher version 1.3.4.

Still present in 1.7.4. Now present in 14w02c.

Sebastien Caisse

(Unassigned)

Confirmed

crash, tellraw, translate

Minecraft 13w37b, Minecraft 1.7.2, Minecraft 1.7.4, Minecraft 14w02c

Minecraft 14w05b

Retrieved