mojira.dev
MC-130169

Enchanted items with capitals in enchantment ID cause crash (path of location: minecraft:Cookie)

Hovering with the mouse over an enchanted item causes a crash if the id contains capital letters

/give @p minecraft:diamond_sword{Enchantments:[{id:"Cookie",lvl:1}]}
Description: Rendering screen
i: Non [a-z0-9/._-] character in path of location: minecraft:Cookie
	at ok.<init>(SourceFile:36)
	at ok.<init>(SourceFile:41)
	at awn.a(SourceFile:582)
	at cmd.a(SourceFile:99)
	at cmd.a(SourceFile:95)
	at cnh.a(SourceFile:674)
	at cmy.b(SourceFile:177)
	at cnh.a(SourceFile:631)
	at cvw.a(SourceFile:821)
	at cim.c(SourceFile:820)
	at cim.a(SourceFile:381)
	at net.minecraft.client.main.Main.main(SourceFile:144)

Linked issues

Attachments

Comments 2

Markus_Rost

Maybe related to MC-124123

wobst.michael

Still an issue in 1.13-pre2. The mouse-over case apparently has been fixed, but you can still get it to crash for example if you use a axe to chop down a tree.

  1. Run

    /give @p minecraft:diamond_axe{Enchantments:[{id:"Cookie",lvl:1}]}
  2. Chop down a tree

[media]

Markus_Rost

boq

Confirmed

Minecraft 18w21a, Minecraft 1.13-pre2

Minecraft 18w21b, Minecraft 1.13-pre3

Retrieved