Fix link applying to whole component in chat if component starts with link (#5909)
This commit is contained in:
parent
3992ea5c59
commit
719f08ea5e
1 changed files with 2 additions and 3 deletions
|
@ -512,8 +512,7 @@ public class ForgeHooks
|
||||||
link.getStyle().setUnderlined(true);
|
link.getStyle().setUnderlined(true);
|
||||||
link.getStyle().setColor(TextFormatting.BLUE);
|
link.getStyle().setColor(TextFormatting.BLUE);
|
||||||
if (ichat == null)
|
if (ichat == null)
|
||||||
ichat = link;
|
ichat = new StringTextComponent("");
|
||||||
else
|
|
||||||
ichat.appendSibling(link);
|
ichat.appendSibling(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue