Open KubaKubek opened 4 months ago
I believe you are pasting regular item nbt into the material field, I believe this line is failing, I haven't tested it:
https://github.com/homchom/recode/blob/585705b34bee8dd3fa2889d3ab294f47c7bee6ab/src/main/java/io/github/homchom/recode/mod/features/commands/ItemEditorMenu.java#L68
I think the ResourceLocation is trying to verify it could be valid (Caused by: net.minecraft.class_151: Non [a-z0-9/._-] character in path of location: minecraft:diamond{display:{MapColor:13631488}}
which is thrown by class_2960.method_45137
or Identifier.validatePath
in yarn mappings)
We should try/catch this call. s
could also be stripped of any possible minecraft:
on the left side so typing in minecraft:stone
doesn't crash or break.
As for nbt, we could either trim it, just pass when it happens, or even better we could parse the item.
Im playing on 1.20.4 and idk how to fix it