Merge pull request #211 from LazyGon/master

[Fix] 16進カラーをTextComponentに適応できないバグを修正
このコミットが含まれているのは:
うっちぃ authored and GitHub committed 2020-09-16 00:26:58 +09:00
コミット 1e384e9043
1ファイル変更
+1 -1
+1 -1
ファイルの表示
@@ -203,7 +203,7 @@ public class ClickableFormat {
String text = matcher.group(2);
String hover = matcher.group(3);
String command = matcher.group(4);
TextComponent tc = new TextComponent(text);
TextComponent tc = new TextComponent(TextComponent.fromLegacyText(text));
if ( !hover.isEmpty() ) {
tc.setHoverEvent(new HoverEvent(
HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(hover).create()));