mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 20:22:28 +00:00
Fix link applying to whole component in chat if component starts with link (#5910)
This commit is contained in:
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.
|
||||
|
||||
Reference in new issue
Block a user