mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix link applying to whole component in chat if component starts with link (#5909)
This commit is contained in:
1 parent
3992ea5c59
commit
719f08ea5e
1 file changed
+2
-3
@@ -512,9 +512,8 @@ public class ForgeHooks
|
||||
link.getStyle().setUnderlined(true);
|
||||
link.getStyle().setColor(TextFormatting.BLUE);
|
||||
if (ichat == null)
|
||||
ichat = link;
|
||||
else
|
||||
ichat.appendSibling(link);
|
||||
ichat = new StringTextComponent("");
|
||||
ichat.appendSibling(link);
|
||||
}
|
||||
|
||||
// Append the rest of the message.
|
||||
|
||||
Reference in new issue
Block a user