Fix link applying to whole component in chat if component starts with link (#5910)

This commit is contained in:
Cloudhunter authored and LexManos committed 2019-08-02 13:41:18 -07:00
1 parent 7849aebab0
commit 5aac0beba9
1 file changed
+2 -3
@@ -801,9 +801,8 @@ public class ForgeHooks
link.getStyle().setUnderlined(true);
link.getStyle().setColor(TextFormatting.BLUE);
if (ichat == null)
ichat = link;
else
ichat.appendSibling(link);
ichat = new TextComponentString("");
ichat.appendSibling(link);
}
// Append the rest of the message.