KyoriPowered / adventure

A user-interface library, formerly known as text, for Minecraft: Java Edition
https://docs.advntr.dev/
MIT License
706 stars 107 forks source link

Choice formatter tag decorations aren't unset #959

Closed tahmid-23 closed 1 year ago

tahmid-23 commented 1 year ago
TagResolver tag = Formatter.choice("choice", 1);
Component component = MiniMessage.miniMessage().deserialize("<choice:\"1#'<b>Hello</b>'|1<'this isn't rendered'\"> why am I bold", tag);
System.out.println(component);

outputs TextComponentImpl{content="Hello why am I bold", style=StyleImpl{obfuscated=not_set, bold=true, strikethrough=not_set, underlined=not_set, italic=not_set, color=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}, children=[]}